Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Add google-service-account-credentials.json File #29

Closed
kingkool68 opened this issue Oct 26, 2017 · 0 comments
Closed

Add google-service-account-credentials.json File #29

kingkool68 opened this issue Oct 26, 2017 · 0 comments

Comments

@kingkool68
Copy link
Contributor

The Google Analytics API needs to load credentials from a JSON file. This contains a private key that the PHP library uses to sign each request sent to the API. For security purposes this needs to be live above the web server root so it is not accessible from the web. On the live server the location needs to be in /var/www/spiritedmedia.com/credentials/google-service-account-credentials.json The contents of the file are stored in 1Password.

Steps after SSHing into the server:

cd /var/www/spiritedmedia.dev
sudo mkdir credentials
sudo vim credentials/google-service-account-credentials.json
# Paste the JSON credentials in and save the file
sudo chown -R www-data: credentials/

See https://github.com/spiritedmedia/spiritedmedia/pull/2339

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant