"Update package dependencies and SSL configuration for production"
This commit is contained in:
parent
7893e1b904
commit
e6e0660bff
@ -1,30 +1,38 @@
|
||||
# MYP V2 - Python Dependencies
|
||||
# Installiere mit: pip3.11 install -r requirements.txt
|
||||
# MYP V3 - Python Dependencies
|
||||
# Installiere mit: pip install -r requirements.txt
|
||||
|
||||
# Flask Framework und Extensions
|
||||
Flask==3.0.0
|
||||
Flask-Login==0.6.3
|
||||
Flask-WTF==1.2.1
|
||||
Flask-Limiter==3.5.0
|
||||
|
||||
# Datenbank
|
||||
SQLAlchemy==2.0.23
|
||||
SQLAlchemy==2.0.41
|
||||
|
||||
# Smart Plug Steuerung
|
||||
PyP100==0.1.2
|
||||
|
||||
# Passwort-Hashing (bereits in Flask enthalten, aber explizit für Klarheit)
|
||||
# Passwort-Hashing und Sicherheit
|
||||
Werkzeug==3.0.1
|
||||
bcrypt==4.1.2
|
||||
cryptography==42.0.8
|
||||
|
||||
# Sicherheit und Rate Limiting
|
||||
redis==5.0.1
|
||||
bcrypt==4.1.2
|
||||
|
||||
# Entwicklung und Testing (optional)
|
||||
# Entwicklung und Testing
|
||||
pytest==7.4.3
|
||||
pytest-cov==4.1.0
|
||||
|
||||
# Produktions-Server (optional)
|
||||
# Produktions-Server
|
||||
gunicorn==21.2.0
|
||||
|
||||
# Monitoring und Logging (optional)
|
||||
psutil==5.9.6
|
||||
# Monitoring und Logging
|
||||
psutil==5.9.6
|
||||
|
||||
# Zusätzliche Dependencies
|
||||
requests==2.31.0
|
||||
Jinja2==3.1.2
|
||||
MarkupSafe==2.1.3
|
||||
itsdangerous==2.1.2
|
@ -58,7 +58,7 @@ function updateEnvFile() {
|
||||
envContent = `# MYP Frontend Umgebungsvariablen\n`;
|
||||
}
|
||||
|
||||
// SSL-Konfigurationen
|
||||
// SSL-Konfigurationen mit alternativen Testoptionen
|
||||
const sslConfigs = [
|
||||
'NODE_TLS_REJECT_UNAUTHORIZED=0',
|
||||
'HTTPS=true',
|
||||
@ -66,7 +66,28 @@ function updateEnvFile() {
|
||||
'SSL_KEY_FILE=./ssl/myp.key',
|
||||
'NEXT_PUBLIC_API_URL=https://raspberrypi:443',
|
||||
'NEXT_PUBLIC_BACKEND_HOST=raspberrypi:443',
|
||||
'NEXT_PUBLIC_BACKEND_PROTOCOL=https'
|
||||
'NEXT_PUBLIC_BACKEND_PROTOCOL=https',
|
||||
|
||||
// Alternative Konfigurationen für Testversuche (auskommentiert)
|
||||
'# Alternative ohne HTTPS',
|
||||
'# HTTPS=false',
|
||||
'# NEXT_PUBLIC_API_URL=http://raspberrypi:80',
|
||||
'# NEXT_PUBLIC_BACKEND_HOST=raspberrypi:80',
|
||||
'# NEXT_PUBLIC_BACKEND_PROTOCOL=http',
|
||||
|
||||
'# Alternative mit IP statt Hostname',
|
||||
'# NEXT_PUBLIC_API_URL=https://192.168.0.105:443',
|
||||
'# NEXT_PUBLIC_BACKEND_HOST=192.168.0.105:443',
|
||||
|
||||
'# Alternative mit localhost',
|
||||
'# NEXT_PUBLIC_API_URL=https://192.168.0.105:5000',
|
||||
'# NEXT_PUBLIC_BACKEND_HOST=192.168.0.105:5000',
|
||||
|
||||
'# Alternative Ports testen',
|
||||
'# NEXT_PUBLIC_API_URL=https://raspberrypi:8443',
|
||||
'# NEXT_PUBLIC_BACKEND_HOST=raspberrypi:8443',
|
||||
'# NEXT_PUBLIC_API_URL=http://raspberrypi:8080',
|
||||
'# NEXT_PUBLIC_BACKEND_HOST=raspberrypi:8080'
|
||||
];
|
||||
|
||||
// Existierende Konfigurationen aktualisieren
|
||||
|
Loading…
x
Reference in New Issue
Block a user