https 접속 허용

This commit is contained in:
Macbook
2026-06-15 13:02:41 +09:00
parent 6481a432fd
commit 8922895ab7
13 changed files with 306 additions and 151 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
set -e
HTTPS_CONF="/etc/nginx/conf.d/https.conf"
HTTPS_TEMPLATE="/etc/nginx/nginx-https.conf"
if [ -f /etc/nginx/ssl/fullchain.pem ] && [ -f /etc/nginx/ssl/privkey.pem ]; then
cp "$HTTPS_TEMPLATE" "$HTTPS_CONF"
echo "[gc-frontend] HTTPS enabled — listening on 443"
else
rm -f "$HTTPS_CONF" 2>/dev/null || true
echo "[gc-frontend] HTTPS skipped — place fullchain.pem + privkey.pem in /etc/nginx/ssl"
fi