2026-01-16 12:02:51 +00:00
|
|
|
# Veza Frontend Environment Variables
|
2026-02-10 12:52:23 +00:00
|
|
|
# Copy this file to .env.local and update with your values
|
|
|
|
|
|
|
|
|
|
# --- DOMAIN (single source of truth for frontend) ---
|
|
|
|
|
# All service URLs derive from this. Must match APP_DOMAIN in backend .env.
|
|
|
|
|
# Change this + /etc/hosts to switch domain.
|
|
|
|
|
VITE_DOMAIN=veza.fr
|
2026-01-16 12:02:51 +00:00
|
|
|
|
2026-02-11 21:11:38 +00:00
|
|
|
# --- BACKEND PORT (Vite proxy target) ---
|
|
|
|
|
# Must match PORT_BACKEND in docker-compose / config.mk. Default 18080 avoids conflicts.
|
|
|
|
|
VITE_BACKEND_PORT=18080
|
|
|
|
|
|
2026-01-16 12:02:51 +00:00
|
|
|
# API Configuration
|
|
|
|
|
# Base URL for the REST API (can be absolute URL or path starting with /)
|
2026-02-10 12:52:23 +00:00
|
|
|
# DEV: use /api/v1 so the Vite proxy forwards to the backend (same-origin cookies).
|
2026-01-16 12:02:51 +00:00
|
|
|
VITE_API_URL=/api/v1
|
|
|
|
|
|
|
|
|
|
# WebSocket Configuration
|
|
|
|
|
# WebSocket URL for real-time features (can be absolute URL or path starting with /)
|
2026-02-10 12:52:23 +00:00
|
|
|
# If omitted, auto-derived from VITE_DOMAIN: ws://<domain>:8081/ws
|
2026-01-16 12:02:51 +00:00
|
|
|
VITE_WS_URL=/ws
|
|
|
|
|
|
|
|
|
|
# Stream Server Configuration
|
|
|
|
|
# Stream server URL for audio streaming (can be absolute URL or path starting with /)
|
2026-02-10 12:52:23 +00:00
|
|
|
# If omitted, auto-derived from VITE_DOMAIN: ws://<domain>:8082/stream
|
2026-01-16 12:02:51 +00:00
|
|
|
VITE_STREAM_URL=/stream
|
|
|
|
|
|
|
|
|
|
# Upload Configuration
|
|
|
|
|
# Upload endpoint URL (can be absolute URL or path starting with /)
|
|
|
|
|
VITE_UPLOAD_URL=/upload
|
|
|
|
|
|
|
|
|
|
# Application Configuration
|
|
|
|
|
# Application name
|
|
|
|
|
VITE_APP_NAME=Veza
|
|
|
|
|
|
|
|
|
|
# API Version
|
|
|
|
|
# API version to use
|
|
|
|
|
VITE_API_VERSION=v1
|
|
|
|
|
|
|
|
|
|
# Debug Mode
|
2026-02-10 12:52:23 +00:00
|
|
|
# Enable verbose API request/response logging in console (true/1 or false/0)
|
2026-01-16 12:02:51 +00:00
|
|
|
VITE_DEBUG=false
|
|
|
|
|
|
|
|
|
|
# Mock Service Worker
|
|
|
|
|
# Enable MSW for API mocking in development (true/1 or false/0)
|
|
|
|
|
VITE_USE_MSW=0
|
|
|
|
|
|
|
|
|
|
# Firebase Cloud Messaging
|
|
|
|
|
# VAPID key for push notifications (optional)
|
|
|
|
|
# VITE_FCM_VAPID_KEY=your-vapid-key-here
|
|
|
|
|
|
|
|
|
|
# Sentry Error Tracking
|
|
|
|
|
# Sentry DSN for error tracking (optional)
|
|
|
|
|
# VITE_SENTRY_DSN=https://your-sentry-dsn@sentry.io/project-id
|
2026-02-11 21:11:38 +00:00
|
|
|
|
|
|
|
|
# --- Feature Flags (optional, defaults in parens) ---
|
|
|
|
|
# Override feature flags without rebuild. Values: true, 1, yes = enabled; else disabled.
|
|
|
|
|
# VITE_FEATURE_TWO_FACTOR_AUTH=true
|
|
|
|
|
# VITE_FEATURE_PLAYLIST_COLLABORATION=true
|
|
|
|
|
# VITE_FEATURE_PLAYLIST_SEARCH=false
|
|
|
|
|
# VITE_FEATURE_PLAYLIST_SHARE=false
|
|
|
|
|
# VITE_FEATURE_PLAYLIST_RECOMMENDATIONS=false
|
|
|
|
|
# VITE_FEATURE_HLS_STREAMING=false
|
|
|
|
|
# VITE_FEATURE_ROLE_MANAGEMENT=false
|
|
|
|
|
# VITE_FEATURE_NOTIFICATIONS=false
|