From 32d240a202563000a50eccbb816b0ea643a1e73e Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 15 Jan 2026 19:32:14 +0300 Subject: [PATCH] Create .env.example --- .env.example | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..81b7c42 --- /dev/null +++ b/.env.example @@ -0,0 +1,37 @@ +# ===== 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