From 593cf656aaa1c8d4b5a94cf02d559788b37e22d3 Mon Sep 17 00:00:00 2001 From: Shun Usami Date: Fri, 10 Nov 2023 14:26:11 +0900 Subject: [PATCH] [env] Add FRONTEND_AUTH_SECRET to .env.template - Add AUTH_SECRET to frontend environment variables --- .env.template | 1 + README.md | 1 + compose.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.env.template b/.env.template index 1e514f21..4bbe5892 100644 --- a/.env.template +++ b/.env.template @@ -1,6 +1,7 @@ NGINX_PORT= PUBLIC_API_URL= FRONTEND_PORT= +FRONTEND_AUTH_SECRET= BACKEND_PORT= BACKEND_JWT_SECRET= POSTGRES_USER= diff --git a/README.md b/README.md index d7336119..c2cc9acb 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ NGINX_PORT=4242 PUBLIC_API_URL=http://localhost:4242/api FRONTEND_PORT=3000 +FRONTEND_AUTH_SECRET=your-secret-key BACKEND_PORT=3000 BACKEND_JWT_SECRET=some_random_secret POSTGRES_USER=postgres diff --git a/compose.yml b/compose.yml index 83815df0..e537d0ce 100644 --- a/compose.yml +++ b/compose.yml @@ -13,6 +13,7 @@ services: environment: PORT: ${FRONTEND_PORT} API_URL: http://backend:${BACKEND_PORT}/api + AUTH_SECRET: ${FRONTEND_AUTH_SECRET} NEXT_PUBLIC_API_URL: ${PUBLIC_API_URL} depends_on: backend: