feat: add production configuration with environment variables
- Add .env file for production deployment with reverse proxy - Add docker-compose.prod.yml for production profile - Add docker-compose.override.yml for local development - Update docker-compose.yml with all configurable variables - Update frontend to use VITE_* environment variables - Update backend to support CORS_ORIGINS and WEBHOOK_BASE_URL - Add vite.config.ts allowedHosts for reverse proxy - Add documentation for docker-compose and reverse proxy setup All URLs are now configurable via environment variables: - VITE_API_URL: Backend API endpoint - VITE_WEBHOOK_BASE_URL: Webhook base URL - VITE_INSTALL_SCRIPT_URL: Install script URL - VITE_APP_URL: Frontend URL - CORS_ORIGINS: Allowed CORS origins - WEBHOOK_BASE_URL: Backend webhook base URL
This commit is contained in:
15
frontend/.env.development
Normal file
15
frontend/.env.development
Normal file
@@ -0,0 +1,15 @@
|
||||
# LogWhispererAI - Frontend Environment Variables (Development)
|
||||
# These variables are exposed to the browser (must start with VITE_)
|
||||
|
||||
# Backend API URL
|
||||
VITE_API_URL=http://192.168.254.79:3001
|
||||
|
||||
# Base URL for webhook endpoints
|
||||
VITE_WEBHOOK_BASE_URL=http://192.168.254.79:3001/webhook
|
||||
|
||||
# Install script URL
|
||||
VITE_INSTALL_SCRIPT_URL=http://192.168.254.79:3001/install.sh
|
||||
|
||||
# Application identification
|
||||
VITE_APP_NAME=LogWhispererAI
|
||||
VITE_APP_URL=http://192.168.254.79:5173
|
||||
Reference in New Issue
Block a user