Provide authenticated IP HTTPS access and clarify server UI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user