mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Create missing directory
This commit is contained in:
@@ -8,6 +8,7 @@ if [ -f "$CERT_PATH" ] && [ -f "$KEY_PATH" ]; then
|
||||
echo "✅ Real certificate found — starting full HTTPS Nginx"
|
||||
else
|
||||
echo "⚠️ No certificate found — starting Nginx with self-signed TLS fallback"
|
||||
mkdir -p /etc/letsencrypt/live/api.2martens.de
|
||||
ln -sf /etc/nginx/ssl/selfsigned.crt /etc/letsencrypt/live/api.2martens.de/fullchain.pem
|
||||
ln -sf /etc/nginx/ssl/selfsigned.key /etc/letsencrypt/live/api.2martens.de/privkey.pem
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user