Replaced `Link` components with `NavLink` for active state support and added new sidebar navigation styling. Enhanced API URL handling to prevent mixed content when using HTTPS. Updated layout and CSS for better responsiveness and consistent design.
30 lines
776 B
Plaintext
30 lines
776 B
Plaintext
# App
|
|
APP_NAME=NexaPG Monitor
|
|
ENVIRONMENT=dev
|
|
LOG_LEVEL=INFO
|
|
|
|
# Core DB
|
|
DB_NAME=nexapg
|
|
DB_USER=nexapg
|
|
DB_PASSWORD=nexapg
|
|
DB_PORT=5433
|
|
|
|
# Backend
|
|
BACKEND_PORT=8000
|
|
JWT_SECRET_KEY=change_this_super_secret
|
|
JWT_ALGORITHM=HS256
|
|
JWT_ACCESS_TOKEN_MINUTES=15
|
|
JWT_REFRESH_TOKEN_MINUTES=10080
|
|
# Generate with: python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
|
|
ENCRYPTION_KEY=REPLACE_WITH_FERNET_KEY
|
|
# Dev: set to * to allow all origins (credentials disabled automatically)
|
|
CORS_ORIGINS=http://localhost:5173,http://localhost:8080
|
|
POLL_INTERVAL_SECONDS=30
|
|
INIT_ADMIN_EMAIL=admin@example.com
|
|
INIT_ADMIN_PASSWORD=ChangeMe123!
|
|
|
|
# Frontend
|
|
FRONTEND_PORT=5173
|
|
# For reverse proxy + SSL prefer relative path to avoid mixed-content.
|
|
VITE_API_URL=/api/v1
|