feat: enable HTTPS admin panel on port 443 for new deployments

Add Nginx SSL panel config, enable-panel-https.sh, secure Flask cookies, and update docs for https login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-28 00:46:08 +08:00
parent 5704ab1a0a
commit 78b85c0d83
13 changed files with 175 additions and 47 deletions
+7 -4
View File
@@ -46,7 +46,8 @@ bash scripts/install.sh
## 架构
```
浏览器 ──► Nginx:80/<PANEL_PATH>/ ──► Web 管理面板
浏览器 ──► Nginx:443 HTTPS/<PANEL_PATH>/ ──► Web 管理面板
└─► Nginx:80ACME 验证 + 跳转 HTTPS
render-server.py
@@ -66,10 +67,11 @@ bash scripts/install.sh
| 端口 | 协议 | 用途 |
|------|------|------|
| 22 | TCP | SSH |
| 80 | TCP | HTTPACME + 管理面板 |
| 80 | TCP | HTTPACME 证书验证 + 跳转 HTTPS |
| 443 | TCP | **HTTPS 管理面板** |
| 84438499 | UDP | Hysteria2(每节点递增) |
云厂商安全组需放行 **84438499/UDP**
云厂商安全组需放行 **443/TCP****84438499/UDP**
---
@@ -103,7 +105,8 @@ bash scripts/remove-vless.sh
├── scripts/
│ ├── install.sh # 一键部署
│ ├── uninstall.sh # 卸载
│ ├── remove-vless.sh # 旧版停用 VLESS
│ ├── remove-vless.sh # 旧版停用 VLESS
│ ├── enable-panel-https.sh # 启用 HTTPS 面板
│ ├── generate-keys.sh # 生成/重置面板密码
│ └── render-server.py # 生成 sing-box 配置
└── docs/ # 文档