Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.3 KB

Secrets.md

File metadata and controls

29 lines (20 loc) · 1.3 KB

Configuring Secrets

To run the TimePhone-API service, you will need an account with OpenAI and GCP. Create a .env file in the root of the project if you have not yet created one.

OpenAI API Key

  1. Create an account at OpenAI.
  2. Create a new API key.
  3. Add your key to the .env file as OPENAI_API_KEY.

GCP Authentication

Google authentication is handled with a service account and a JSON key file.

  1. Create a new service account in GCP.
  2. Create a new key for the service account.
  3. Download the key file
  4. Base64 encode the key file to a single line and add it to the .env file as GCP_AUTHJSON_BASE64.
# To base64 encode the key file
cat file.json | base64 | tr -d '                                                                                                                               INT х  11s  techsquid@myhomeserver 
'

Storage

This project uses MinIO for local storage with Docker Compose. Follow the instructions in the Storage documentation to configure MinIO.