Till Tomczak 62e131c02f """
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.
"""
2025-05-24 18:58:17 +02:00

64 lines
1.8 KiB
Plaintext

# 🎨 MYP Frontend - Entwicklungsumgebung Konfiguration
# Umgebungsvariablen für die Verbindung zum Raspberry Pi Backend
# === NODE.JS KONFIGURATION ===
NODE_ENV=development
NEXT_TELEMETRY_DISABLED=1
# === FRONTEND SERVER ===
PORT=3000
HOSTNAME=0.0.0.0
FRONTEND_URL=http://localhost:3000
# === BACKEND API KONFIGURATION ===
# 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=dev-frontend-auth-secret-2024
JWT_SECRET=dev-frontend-jwt-secret-2024
# OAuth Provider (Entwicklung)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
MICROSOFT_CLIENT_ID=
MICROSOFT_CLIENT_SECRET=
# === DATABASE (Frontend-spezifisch, falls Session Store) ===
# Hinweis: Frontend sollte normalerweise KEINE direkte DB-Verbindung haben
# Diese Werte sind nur für Session-Management relevant
FRONTEND_DB_PATH=db/frontend.db
# === CACHE KONFIGURATION ===
# Frontend-spezifischer Redis Cache (separater Port!)
FRONTEND_REDIS_PASSWORD=dev_frontend_cache_password
FRONTEND_REDIS_HOST=localhost
FRONTEND_REDIS_PORT=6380
FRONTEND_REDIS_DB=1
# === CDN KONFIGURATION ===
CDN_URL=http://localhost:8080
ASSETS_URL=http://localhost:8080/static
# === SICHERHEIT ===
# 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://192.168.0.105:5000 http://localhost:5000"
# === MONITORING ===
ANALYTICS_ENABLED=false
ERROR_REPORTING_ENABLED=true
# === ENTWICKLUNG ===
DEBUG=true
NEXT_DEBUG=true
# === BUILD KONFIGURATION ===
ANALYZE=false
BUNDLE_ANALYZER=false