Skip to content

Commit

Permalink
[env] Add FRONTEND_AUTH_SECRET to .env.template
Browse files Browse the repository at this point in the history
- Add AUTH_SECRET to frontend environment variables
  • Loading branch information
usatie committed Nov 10, 2023
1 parent 1937935 commit 593cf65
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
NGINX_PORT=
PUBLIC_API_URL=
FRONTEND_PORT=
FRONTEND_AUTH_SECRET=
BACKEND_PORT=
BACKEND_JWT_SECRET=
POSTGRES_USER=
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 593cf65

Please sign in to comment.