fix: ACME HTTP-01 via nginx config without HTTPS redirect

This commit is contained in:
orohi
2026-06-17 06:12:54 +03:00
parent f2c05d15ec
commit 0000a8974d
8 changed files with 239 additions and 26 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -euo pipefail
CONF="/etc/nginx/nginx.conf"
INCLUDE="include /etc/nginx/panel/*.conf;"
mkdir -p /etc/nginx/panel
if [ -f "$CONF" ] && ! grep -qF "$INCLUDE" "$CONF"; then
echo "Добавляю include в $CONF"
echo "" >> "$CONF"
echo "# PanelHosting" >> "$CONF"
echo "$INCLUDE" >> "$CONF"
fi
nginx -t && nginx -s reload
echo "Nginx готов. Конфиги панели: /etc/nginx/panel/"