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
+4 -3
View File
@@ -21,11 +21,12 @@
### 访问地址
```
http://你的域名/<PANEL_PATH>/
https://你的域名/<PANEL_PATH>/
```
- 必须使用 **HTTP**端口 80),不要用 HTTPS
- `PANEL_PATH` 在安装时生成,保存在 VPS 的 `/opt/jiedian/.env` 中:
- 使用 **HTTPS**443 端口),密码加密传输
- 若输入 `http://` 会自动跳转到 HTTPS
- `PANEL_PATH``/opt/jiedian/.env` 中:
```bash
grep PANEL_PATH /opt/jiedian/.env