接入原版管理后台静态页面
This commit is contained in:
@@ -0,0 +1,35 @@
|
|||||||
|
# 管理后台
|
||||||
|
|
||||||
|
这是从遗失服务端代码中恢复的原版静态管理后台,可以和认证服务分开部署。
|
||||||
|
|
||||||
|
## 本地访问
|
||||||
|
|
||||||
|
认证服务启动后访问:
|
||||||
|
|
||||||
|
```text
|
||||||
|
http://127.0.0.1:3302/admin/
|
||||||
|
```
|
||||||
|
|
||||||
|
## 独立部署
|
||||||
|
|
||||||
|
把本目录作为静态站点部署即可。默认情况下后台会请求同域 `/api`。
|
||||||
|
|
||||||
|
如果后台和认证服务不在同一个域名,通过 `api` 参数指定认证服务地址:
|
||||||
|
|
||||||
|
```text
|
||||||
|
https://admin.example.com/?api=https://auth.example.com
|
||||||
|
```
|
||||||
|
|
||||||
|
本地测试示例:
|
||||||
|
|
||||||
|
```text
|
||||||
|
http://127.0.0.1:3302/admin/?api=http://127.0.0.1:3302
|
||||||
|
```
|
||||||
|
|
||||||
|
认证服务需要开放 CORS;本地服务默认允许跨域。
|
||||||
|
|
||||||
|
## 资源
|
||||||
|
|
||||||
|
- `index.html`:原版管理后台页面
|
||||||
|
- `login-bg.png`:原版登录背景图
|
||||||
|
- `logo.png`:原版 Logo
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 444 KiB |
Reference in New Issue
Block a user