Files
headquarter/.env.example
T
Fusion da0b90ce33 fix: align env var names for frontend API URL
The frontend code uses VITE_API_BASE_URL but docker-compose files
and .env.example were setting VITE_API_URL, causing the login
redirect to fall back to localhost:8000.

- Update docker-compose.traefik.yml: VITE_API_URL → VITE_API_BASE_URL
- Update docker-compose.yml: VITE_API_URL → VITE_API_BASE_URL
- Update .env.example: VITE_API_URL → VITE_API_BASE_URL
2026-05-18 11:02:06 +02:00

49 lines
1.4 KiB
Bash

# Database Configuration
POSTGRES_USER=headquarter
POSTGRES_PASSWORD=change-me-in-production
POSTGRES_DB=headquarter
# Redis Configuration
REDIS_URL=redis://redis:6379/0
# JWT Configuration
JWT_SECRET=change-me-in-production
JWT_ALGORITHM=HS256
JWT_EXPIRATION_HOURS=24
# Application Configuration
APP_ENV=development
DEBUG=true
LOG_LEVEL=info
REPO_BASE_PATH=/data/repos
# Domain Configuration (for both development and traefik modes)
API_DOMAIN=localhost
WEB_DOMAIN=localhost
AUTHENTIK_DOMAIN=authentik.local
# Public URLs (optional - will be constructed from domains if not set)
# API_PUBLIC_URL=https://api.example.com
# WEB_PUBLIC_URL=https://app.example.com
# Authentik Configuration
AUTHENTIK_CLIENT_ID=headquarter-web
AUTHENTIK_CLIENT_SECRET=change-me
# Override Authentik URLs if they differ from the default pattern
# AUTHENTIK_AUTHORIZE_URL=https://authentik.example.com/application/o/authorize/
# AUTHENTIK_TOKEN_URL=https://authentik.example.com/application/o/token/
# AUTHENTIK_JWKS_URL=https://authentik.example.com/application/o/headquarter-web/jwks/
# AUTHENTIK_ISSUER=https://authentik.example.com/application/o/headquarter-web/
AUTHENTIK_AUDIENCE=headquarter-web
# Frontend Configuration
VITE_API_BASE_URL=http://localhost:8000
VITE_APP_URL=http://localhost:3000
# Docker Configuration
COMPOSE_PROJECT_NAME=headquarter
# Traefik Configuration (for docker-compose.traefik.yml)
# PROXY_WEB_NAME=headquarter-web
# TRAEFIK_NETWORK=traefik