"Update SSL certificate management scripts and configure SSL for frontend"

This commit is contained in:
2025-05-26 12:27:08 +02:00
parent 7e5a6e7e27
commit 5143e8a753
8 changed files with 12 additions and 1853 deletions

View File

@@ -28,8 +28,8 @@ if (!fs.existsSync(path.join(SSL_DIR, 'myp.crt')) || !fs.existsSync(path.join(SS
console.log('SSL-Zertifikate nicht gefunden. Prüfe Backend-Verzeichnis...');
// Versuche, die Zertifikate aus dem Backend zu kopieren
const backendCertPath = path.join('..', 'backend', 'certs', 'myp.crt');
const backendKeyPath = path.join('..', 'backend', 'certs', 'myp.key');
const backendCertPath = path.join('/home/user/Projektarbeit-MYP/backend/certs/myp.crt');
const backendKeyPath = path.join('/home/user/Projektarbeit-MYP/backend/certs/myp.key');
if (fs.existsSync(backendCertPath) && fs.existsSync(backendKeyPath)) {
console.log('Zertifikate im Backend-Verzeichnis gefunden. Kopiere...');