Canonical variables:
- AUTH_SECRET_KEY — JWT signing key for backend + agent (was split across
AUTH_SECRET_KEY / JWT_SECRET)
- SERVICE_JWT — agent→backend service token
- No JWT_SECRET fallback: decoder fails with migration guidance if only
JWT_SECRET is set
Compose files unified:
- docker-compose.yml, docker-compose.enterprise-clean.yml,
docker-compose.e2e.yml — all use AUTH_SECRET_KEY
- build.sh generated compose now passes AUTH_SECRET_KEY + ENCRYPTION_KEY
to backend
Env examples unified and completed:
- .env.example — comprehensive template, all compose vars
- .env.enterprise-clean.example — production template
- backend/.env.example — backend-only run
- docker/.env.agent.example — agent-only run
- NEW: .env.current.example, .env.master.example,
.env.e2e.example, frontend/.env.example
Tests aligned:
- conftest sets AUTH_SECRET_KEY (canonical value matched across test files)
- test mocks use canonical name
- 1176 passed, 0 failed
10 lines
496 B
Plaintext
10 lines
496 B
Plaintext
# Frontend dev config
|
||
# Используется при запуске npm run dev (Vite dev server).
|
||
# В production (docker compose) фронтенд обслуживается nginx,
|
||
# переменные окружения задаются docker-compose.yml или Dockerfile.
|
||
|
||
# URL бекенда для API-прокси в dev-режиме
|
||
PUBLIC_BACKEND_URL=http://127.0.0.1:8000
|
||
# URL агента для Gradio-прокси в dev-режиме
|
||
PUBLIC_GRADIO_URL=http://127.0.0.1:7860
|