adhocteam / nytimes-library

A collaborative documentation site, powered by Google Docs.
https://nyt-library-demo.herokuapp.com/
Apache License 2.0
1 stars 1 forks source link

Use GCP Secrets Manager to set env vars #49

Closed zenkimoto closed 2 years ago

zenkimoto commented 2 years ago

Part of #39

Description of Change

Sets the following environment variables from GCP Secrets Manager:

APPROVED_DOMAINS DRIVE_ID DRIVE_TYPE EXCLUDE_FOLDERS GCP_PROJECT_ID NODE_ENV REDIRECT_URL GOOGLE_APPLICATION_JSON GOOGLE_APPLICATION_CREDENTIALS GOOGLE_APPLICATION_PUBLIC_KEY GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET SESSION_SECRET

index.js will determine if the code is running locally and attempt to use .env file.

Related Issue

Motivation and Context

Checklist