From 1fc8657fbfda68d3e296c5b5f28206a6848af90f Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 15 Jan 2026 20:41:17 +0300 Subject: [PATCH] Update .env.example --- .env.example | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.env.example b/.env.example index 81b7c42..4e88994 100644 --- a/.env.example +++ b/.env.example @@ -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