"Update package dependencies and SSL configuration for production"
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user