Files
bedolaga-cabinet/.env.example
2026-01-15 19:32:14 +03:00

38 lines
1.1 KiB
Plaintext

# ===== BUILD-TIME VARIABLES =====
# These are baked into the frontend at build time
# API URL (relative path for same-origin, or full URL for external)
# Same server (with proxy): /api
# Remote server (direct): https://api.yourbot.com/cabinet
VITE_API_URL=/api
# Telegram bot username for Login Widget (without @)
VITE_TELEGRAM_BOT_USERNAME=your_bot_username
# ===== BRANDING =====
# App name displayed in header and browser tab
VITE_APP_NAME=VPN Cabinet
# Short logo text (1-2 characters, displayed in logo icon)
VITE_APP_LOGO=V
# ===== RUNTIME VARIABLES =====
# These are used by Caddy at runtime
# Backend URL for reverse proxy (only if using proxy mode with VITE_API_URL=/api)
# Development: http://host.docker.internal:8080
# Production (same network): http://remnawave_bot:8080
# Remote server: https://api.yourbot.com
BACKEND_URL=https://api.yourbot.com
# Port to expose the frontend
CABINET_PORT=3000
# ===== PRODUCTION ONLY =====
# Domain for HTTPS (Caddy will auto-obtain certificates)
DOMAIN=cabinet.yourdomain.com
# HTTPS port (usually 443)
CABINET_HTTPS_PORT=443