"""
feat: Update frontend and backend configurations for development environment - Downgrade PyP100 version in requirements.txt for compatibility. - Add new frontend routes for index, login, dashboard, printers, jobs, and profile pages. - Modify docker-compose files for development setup, including environment variables and service names. - Update Caddyfile for local development with Raspberry Pi backend. - Adjust health check route to use updated backend URL. - Enhance setup-backend-url.sh for development environment configuration. """
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# 🎨 MYP Frontend - Standalone Server Konfiguration
|
||||
# Umgebungsvariablen ausschließlich für den Frontend-Server
|
||||
# 🎨 MYP Frontend - Entwicklungsumgebung Konfiguration
|
||||
# Umgebungsvariablen für die Verbindung zum Raspberry Pi Backend
|
||||
|
||||
# === NODE.JS KONFIGURATION ===
|
||||
NODE_ENV=production
|
||||
NODE_ENV=development
|
||||
NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# === FRONTEND SERVER ===
|
||||
@@ -11,18 +11,18 @@ HOSTNAME=0.0.0.0
|
||||
FRONTEND_URL=http://localhost:3000
|
||||
|
||||
# === BACKEND API KONFIGURATION ===
|
||||
# Backend-Server Verbindung (HTTP)
|
||||
BACKEND_API_URL=http://localhost:5000/api
|
||||
BACKEND_HOST=localhost:5000
|
||||
NEXT_PUBLIC_API_URL=http://localhost:5000/api
|
||||
NEXT_PUBLIC_BACKEND_HOST=localhost:5000
|
||||
# Backend-Server Verbindung (Raspberry Pi)
|
||||
BACKEND_API_URL=http://192.168.0.105:5000/api
|
||||
BACKEND_HOST=192.168.0.105:5000
|
||||
NEXT_PUBLIC_API_URL=http://192.168.0.105:5000
|
||||
NEXT_PUBLIC_BACKEND_HOST=192.168.0.105:5000
|
||||
|
||||
# === AUTHENTIFIZIERUNG ===
|
||||
NEXTAUTH_URL=http://localhost:3000
|
||||
NEXTAUTH_SECRET=frontend-auth-secret-2024
|
||||
JWT_SECRET=frontend-jwt-secret-2024
|
||||
NEXTAUTH_SECRET=dev-frontend-auth-secret-2024
|
||||
JWT_SECRET=dev-frontend-jwt-secret-2024
|
||||
|
||||
# OAuth Provider (falls verwendet)
|
||||
# OAuth Provider (Entwicklung)
|
||||
GOOGLE_CLIENT_ID=
|
||||
GOOGLE_CLIENT_SECRET=
|
||||
MICROSOFT_CLIENT_ID=
|
||||
@@ -35,7 +35,7 @@ FRONTEND_DB_PATH=db/frontend.db
|
||||
|
||||
# === CACHE KONFIGURATION ===
|
||||
# Frontend-spezifischer Redis Cache (separater Port!)
|
||||
FRONTEND_REDIS_PASSWORD=frontend_cache_password
|
||||
FRONTEND_REDIS_PASSWORD=dev_frontend_cache_password
|
||||
FRONTEND_REDIS_HOST=localhost
|
||||
FRONTEND_REDIS_PORT=6380
|
||||
FRONTEND_REDIS_DB=1
|
||||
@@ -45,19 +45,19 @@ CDN_URL=http://localhost:8080
|
||||
ASSETS_URL=http://localhost:8080/static
|
||||
|
||||
# === SICHERHEIT ===
|
||||
# CSP (Content Security Policy)
|
||||
# CSP (Content Security Policy) - Entwicklung
|
||||
CSP_SCRIPT_SRC="'self' 'unsafe-inline' 'unsafe-eval'"
|
||||
CSP_STYLE_SRC="'self' 'unsafe-inline'"
|
||||
CSP_IMG_SRC="'self' data: https:"
|
||||
CSP_CONNECT_SRC="'self' ws: wss: http://localhost:5000"
|
||||
CSP_CONNECT_SRC="'self' ws: wss: http://192.168.0.105:5000 http://localhost:5000"
|
||||
|
||||
# === MONITORING ===
|
||||
ANALYTICS_ENABLED=true
|
||||
ANALYTICS_ENABLED=false
|
||||
ERROR_REPORTING_ENABLED=true
|
||||
|
||||
# === ENTWICKLUNG ===
|
||||
DEBUG=false
|
||||
NEXT_DEBUG=false
|
||||
DEBUG=true
|
||||
NEXT_DEBUG=true
|
||||
|
||||
# === BUILD KONFIGURATION ===
|
||||
ANALYZE=false
|
||||
|
Reference in New Issue
Block a user