-
Notifications
You must be signed in to change notification settings - Fork 66
Manual Setup
The WP-Stateless setup assistant will walk you through the process of creating a Google Cloud project, bucket, service account, and associated billing account. If you prefer to handle these manually, simply follow these instructions.
- Create Google Cloud Billing Account
- Create Google Cloud Project
- Create Google Cloud Bucket
- Create Google Cloud Service Account
- Configure WP-Stateless Settings
Every Google Cloud project needs an associated billing account, and it can be helpful to have this billing account in place before creating your project. Simply visit https://console.cloud.google.com/billing/create and follow the instructions.
If you are new to Google Cloud, you will be presented with a $300 credit to spend over the next 12 months.
With a billing account in place, visit the Google Cloud Console and create a project you want to be associated with the website you are working on.
- From within your project, visit Storage > Browser and click Create Bucket.
- Go to the Permissions tab for the bucket and enable Object-level permissions.
- Make the bucket data available publicly by following these steps: Make Data Public.
- From within your project, IAM & Admin > Service accounts.
- Click Create Service Account and name it wp-stateless.
- Check Furnish a new private key and select JSON as the key type.
- Return to Storage > Browser, and Go to the Permissions tab for the bucket
- Click on "Add members" and type "wp-stateless" in Input field. GCP will autocomplete this name with full IAM email. Select this email. In dropdown "Select a role", select "Storage Admin". Click on "Save".
From the WP-Stateless settings panel, the basic settings you should concern yourself with to get started are: Mode, Bucket, and Service Account JSON.
- Mode - select the desired mode to enable WP-Stateless.
- Bucket - insert the name of the bucket you created in Step 3.
- Service Account JSON - open the JSON file you obtained in Step 4 and copy the contents into this textarea.
Click Save Changes and upload something via the Media Library. If you set the WP-Stateless mode to CDN or Stateless, you should see the media's file URL referencing Google Cloud Storage (storage.googleapis.com).