item-atlas/apps/admin/README.md

12 lines
655 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 见物管理后台
用平台管理员账号登录,输入空间 ID 查询空间名称、物品和图片数量。删除需要再次输入空间 ID。服务端记录操作人和时间,并异步清理原图和缩略图。
```sh
npm ci
npm run build
docker build -t item-atlas-admin:dev .
```
镜像监听 8080。容器环境变量 `ATLAS_GATEWAY_URL` 指向内网网关。`VITE_OIDC_URL`、`VITE_OIDC_REALM` 是构建参数,对应管理员登录所用的 Keycloak。应用只向同源 `/api/admin/` 发请求,由 Nginx 转发。Keycloak 的回调、权限和入口配置见 [身份和图片部署](../../docs/deployment/identity-and-media.md)。