Fix admin authentication by adding env vars to frontend container
All checks were successful
Build and Push Docker Images / docker (push) Successful in 22s
All checks were successful
Build and Push Docker Images / docker (push) Successful in 22s
The admin portal API routes run in the Next.js frontend container, so ADMIN_USERNAME, ADMIN_PASSWORD, and JWT_SECRET need to be available in the web service environment variables. This fixes 401 Unauthorized errors when attempting to login. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
a86cf6aedf
commit
e6d830ffd9
@ -17,6 +17,10 @@ services:
|
||||
- VITE_API_BASE_URL=${VITE_API_BASE_URL}
|
||||
- VITE_WREN_API_TOKEN=${VITE_WREN_API_TOKEN}
|
||||
- VITE_STRIPE_PUBLISHABLE_KEY=${VITE_STRIPE_PUBLISHABLE_KEY}
|
||||
# Admin Portal Authentication (server-side only)
|
||||
- ADMIN_USERNAME=${ADMIN_USERNAME}
|
||||
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- puffin-network
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user