Update .env.example

This commit is contained in:
Egor
2026-01-15 20:41:17 +03:00
committed by GitHub
parent 560e07f9bb
commit 1fc8657fbf

View File

@@ -1,7 +1,8 @@
# ===== BUILD-TIME VARIABLES =====
# These are baked into the frontend at build time
# These variables are baked into the frontend JavaScript at build time
# If you change them, you need to rebuild: docker compose up -d --build
# API URL (relative path for same-origin, or full URL for external)
# API URL - How the browser will access the backend
# Same server (with proxy): /api
# Remote server (direct): https://api.yourbot.com/cabinet
VITE_API_URL=/api
@@ -9,7 +10,7 @@ VITE_API_URL=/api
# Telegram bot username for Login Widget (without @)
VITE_TELEGRAM_BOT_USERNAME=your_bot_username
# ===== BRANDING =====
# ===== BRANDING (optional) =====
# App name displayed in header and browser tab
VITE_APP_NAME=VPN Cabinet
@@ -17,21 +18,7 @@ VITE_APP_NAME=VPN Cabinet
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
# Port to expose the frontend on host machine
# Default: 3000 (http://localhost:3000)
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