Provide authenticated IP HTTPS access and clarify server UI

This commit is contained in:
Codex
2026-10-11 19:34:20 +08:00
parent 4b62c33ed9
commit fcdf6f27f2
5 changed files with 49 additions and 11 deletions
+2
View File
@@ -14,6 +14,8 @@ if not cert.exists():
if not Path(replacement, 'fullchain.pem').exists():
raise SystemExit('Install a valid origin certificate before configuring HTTPS')
text = text.replace('/etc/letsencrypt/live/kaoyan.fjayson.com/', replacement)
if Path('/etc/letsencrypt/live/186.241.68.230/fullchain.pem').exists():
text += '\n' + (root / 'nginx-ip-origin.conf').read_text()
Path('/etc/nginx/sites-available/kaoyan-studio').write_text(text)
PY
ln -sfn /etc/nginx/sites-available/kaoyan-studio /etc/nginx/sites-enabled/kaoyan-studio