The Google Cloud Storage extension is a File System Provider which allows you to use the Google Cloud Storage service with Nucleus.
Your Google Cloud Storage service is configured using the Google Cloud Console.
The easiest way to set up the Nucleus Google Cloud Storage extension is during setup, using the Setup Wizard. If you use the Setup Wizard, you don't need to follow the steps below.
To use Google Cloud Storage, install the Google Cloud Storage extension, then add a configuration section for the Google Cloud Storage file system provider to the Nucleus:FileSystems:Providers section of your appSettings.{environment}.json file (normally appSettings.Production.json). You will need the credentials file that you downloaded earlier.
Refer to the Nucleus Configuration Reference for information on configuration files.
The provider type name for the Google Cloud Storage file system provider is
Nucleus.Extensions.GoogleStorageCloudFileSystemProvider.FileSystemProvider,Nucleus.Extensions.GoogleStorageCloudFileSystemProvider.
{
"Key": "Google",
"Name": "Google",
"ProviderType": "Nucleus.Extensions.GoogleStorageCloudFileSystemProvider.FileSystemProvider,Nucleus.Extensions.GoogleStorageCloudFileSystemProvider",
"RootPath": "your-bucket-name",
"ProjectId": "your-project-id",
"CredentialsFile": "/path/to/credentials/file.json"
}
| Setting | Description |
|---|---|
| RootPath | In most cases, you will set RootPath to the name of your bucket. |
| ProjectId | The ID of your project in Google Cloud Console. You can view your project IDs by clicking the button to the right of the "Google Cloud" logo at the top left of the page. |
| CredentialsFile | The path to your service account credentials file. This should be stored in a location that your web server can access, but which cannot be accessed by end users. |
Buckets. You must create a bucket and set its properties in the
Google Cloud Console. You can't create or change buckets from Nucleus, only the files and folders within the bucket.