This commit is contained in:
awei
2025-03-03 17:43:50 +08:00
commit 113756eaae
1497 changed files with 127997 additions and 0 deletions

14
nginx/updateConfig.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# 备份并覆盖配置文件
cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
cp nginx.conf /etc/nginx/
# 测试并重载配置
if nginx -t; then
systemctl reload nginx
echo "配置已生效HTTPS已启用"
else
echo "配置测试失败,已恢复备份"
cp /etc/nginx/nginx.conf.bak /etc/nginx/nginx.conf
fi