diff --git a/production/README.md b/production/README.md index 39c625ef..e95fcd3d 100644 --- a/production/README.md +++ b/production/README.md @@ -5,6 +5,7 @@ 1. Create a file named `.backend.env` with the following attributes: ```bash +ENV="production" # Required for secure HTTPS-only cookies CLIENT_ID="client_ID" # Google Auth Secret from Prerequisites CLIENT_SEC="client_SECRET" # Google Auth Secret from Prerequisites REDIRECT_URL_DEV="http://localhost:8000/auth/callback" @@ -84,6 +85,7 @@ services: Create `.backend.env`: ```bash +ENV="production" CLIENT_ID="your-google-client-id" CLIENT_SEC="your-google-client-secret" REDIRECT_URL_DEV="https://your-domain.com/auth/callback" diff --git a/production/backend-deployment.yaml b/production/backend-deployment.yaml index 24b1ed38..4fe1a67f 100644 --- a/production/backend-deployment.yaml +++ b/production/backend-deployment.yaml @@ -40,6 +40,11 @@ spec: configMapKeyRef: key: CONTAINER_ORIGIN name: backend-env + - name: ENV + valueFrom: + configMapKeyRef: + key: ENV + name: backend-env - name: FRONTEND_ORIGIN_DEV valueFrom: configMapKeyRef: diff --git a/production/backend-env-configmap.yaml b/production/backend-env-configmap.yaml index 7bcf15ed..0e1fc8b0 100644 --- a/production/backend-env-configmap.yaml +++ b/production/backend-env-configmap.yaml @@ -3,6 +3,7 @@ data: CLIENT_ID: "YOUR_GOOGLE_CLOUD_AUTH_CLIENT_ID" # Replace this in order to access the frontend CLIENT_SEC: "YOUR_GOOGLE_CLOUD_AUTH_CLIENT_SECRET" # Replace this in order to access the frontend CONTAINER_ORIGIN: http://syncserver:8080/ + ENV: "production" # Required for secure HTTPS-only cookies FRONTEND_ORIGIN_DEV: http://localhost PORT: "8000" REDIRECT_URL_DEV: http://localhost:8000/auth/callback