"feat: Implement Docker Compose for backend and frontend servers"
This commit is contained in:
66
backend/env.backend
Normal file
66
backend/env.backend
Normal file
@@ -0,0 +1,66 @@
|
||||
# 🏭 MYP Backend - Standalone Server Konfiguration
|
||||
# Umgebungsvariablen ausschließlich für den Backend-Server
|
||||
|
||||
# === FLASK KONFIGURATION ===
|
||||
FLASK_APP=app.py
|
||||
FLASK_ENV=production
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
# === DATENBANK KONFIGURATION ===
|
||||
# SQLite (Default)
|
||||
DATABASE_PATH=instance/myp.db
|
||||
|
||||
# PostgreSQL (Optional)
|
||||
DB_NAME=myp_backend
|
||||
DB_USER=myp_user
|
||||
DB_PASSWORD=secure_backend_password
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5432
|
||||
|
||||
# === SICHERHEIT ===
|
||||
SECRET_KEY=7445630171969DFAC92C53CEC92E67A9CB2E00B3CB2F
|
||||
JWT_SECRET=secure-jwt-secret-backend-2024
|
||||
JWT_ACCESS_TOKEN_EXPIRES=3600
|
||||
JWT_REFRESH_TOKEN_EXPIRES=2592000
|
||||
|
||||
# === CORS KONFIGURATION ===
|
||||
# Erlaubte Frontend-Origins
|
||||
CORS_ORIGINS=http://localhost:3000,https://frontend.myp.local,https://myp.frontend.local
|
||||
|
||||
# === DRUCKER KONFIGURATION ===
|
||||
PRINTERS={"Drucker 1": {"ip": "192.168.0.100"}, "Drucker 2": {"ip": "192.168.0.101"}, "Drucker 3": {"ip": "192.168.0.102"}, "Drucker 4": {"ip": "192.168.0.103"}, "Drucker 5": {"ip": "192.168.0.104"}, "Drucker 6": {"ip": "192.168.0.106"}}
|
||||
|
||||
# === TAPO SMART PLUG ===
|
||||
TAPO_USERNAME=till.tomczak@mercedes-benz.com
|
||||
TAPO_PASSWORD=744563017196A
|
||||
|
||||
# === NETZWERK KONFIGURATION ===
|
||||
HOST=0.0.0.0
|
||||
PORT=5000
|
||||
BACKEND_URL=http://localhost:5000
|
||||
|
||||
# === CACHE KONFIGURATION ===
|
||||
REDIS_PASSWORD=backend_cache_password
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
REDIS_DB=0
|
||||
|
||||
# === LOGGING ===
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FILE=logs/backend.log
|
||||
LOG_MAX_SIZE=10485760
|
||||
LOG_BACKUP_COUNT=5
|
||||
|
||||
# === DATEISYSTEM ===
|
||||
UPLOAD_FOLDER=uploads
|
||||
MAX_CONTENT_LENGTH=16777216
|
||||
|
||||
# === MONITORING ===
|
||||
HEALTH_CHECK_INTERVAL=30
|
||||
METRICS_ENABLED=true
|
||||
METRICS_PORT=9090
|
||||
|
||||
# === ENTWICKLUNG ===
|
||||
DEBUG=false
|
||||
TESTING=false
|
||||
DEVELOPMENT=false
|
Reference in New Issue
Block a user