Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation of the section plugin Google Cloud Storage #6275

Merged
merged 2 commits into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 1 addition & 19 deletions docs/3.0.0-beta.x/deployment/google-app-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,25 +262,7 @@ yarn add strapi-provider-upload-google-cloud-storage

Deploy so that the server app includes the dependency from `package.json`.

Create a Google service account key.

<https://console.cloud.google.com/apis/credentials/serviceaccountkey>

Save the JSON credentials file.

Plugins > File Upload > Settings > Production tab

By default `localhost` is selected. Select the `Google Cloud Storage` plugin.

Copy the JSON key and set the regions.

Open the `Cloud Console > Storage > Browser` menu.

Copy the bucket name to the plugin settings, the default is the app ID, such as `myapi-123456.appspot.com`.

(Note that the `Access control` setting of the bucket has to be `Fine-grained`, which is the default.)

Click `Save`, and it's ready to go!
Follow the [documentation of the plugin](https://github.com/Lith/strapi-provider-upload-google-cloud-storage/blob/master/README.md) for the full configuration.

### Post-setup configuration

Expand Down
29 changes: 1 addition & 28 deletions docs/v3.x/deployment/google-app-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,34 +237,7 @@ yarn add strapi-provider-upload-google-cloud-storage

Deploy so that the server app includes the dependency from `package.json`.

Create a Google service account key.

<https://console.cloud.google.com/apis/credentials/serviceaccountkey>

Save the JSON credentials file.

Open the JSON credentials file, copy all the content and set an environment variable named as `GCS_SERVICE_ACCOUNT`

Create a settings.json file in below path

```
./extensions/upload/config/settings.json
```

Paste in the code below, replace `###YOUR BUCKET NAME###` with your bucket name such as `myapi-123456.appspot.com`

```
{
"provider": "google-cloud-storage",
"providerOptions": {
"serviceAccount": "${process.env.GCS_SERVICE_ACCOUNT}",
"bucketName": "###YOUR BUCKET NAME###",
"baseUrl": "https://storage.googleapis.com/###YOUR BUCKET NAME###"
}
}
```

(Note that the `Access control` setting of the bucket has to be `Fine-grained`, which is the default.)
Follow the [documentation of the plugin](https://github.com/Lith/strapi-provider-upload-google-cloud-storage/blob/master/README.md) for the full configuration.

### Post-setup configuration

Expand Down