feat: 新增 2FAuth (#1831)

This commit is contained in:
wanghe
2024-07-31 13:53:38 +08:00
committed by GitHub
parent 2d783a08be
commit f79d92e950
7 changed files with 91 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# 设置
## **启用 HTTPS**
- **创建应用**:外部地址填写 `https://2fauth.example.com`(请根据实际情况替换域名)。
- **创建反向代理网站**:代理地址填写 `http://127.0.0.1:8000`(请根据实际情况替换 IP 和端口)。
- **申请证书**:为 `2fauth.example.com` 创建证书,验证方式选择 HTTP 类型。
- **启用 HTTPS**:进入网站设置页面,点击 HTTPS,选择刚刚添加的证书并保存。
## **不启用 HTTPS**
- 如果不启用 HTTPS,会导致无法扫描二维码等问题。在这种情况下,外部地址可以直接填写 `http://192.168.10.100:8000`,无需进行反向代理设置。