Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin 配置无效 #138

Open
thatsgolden opened this issue Jan 18, 2023 · 1 comment
Open

Admin 配置无效 #138

thatsgolden opened this issue Jan 18, 2023 · 1 comment

Comments

@thatsgolden
Copy link

前端配置的 api.admin 以及后端的 admin_address 配置,现在是没有开放吗?

在经历穷举(如填写 /admin/, /admin, /)尝试后,发现出现了公告的按钮,但是公告的接口一直报 404。

@LucienShui
Copy link
Owner

你好,admin 的地址需要自行反向代理 /api/ 路径,这个当时没有留下文档,导致了现在的问题,后面有时间我再做补充。

举个例子,比如当 admin 的 docker-compose.yml 文件如下所示时,需要将 localhost:18001/api/ 反向代理至 http://pasteme.cn/backend/api/ 后,在 api.backend 中填入 /backend/api/

version: "3"

services:
  pasteme-admin:
    image: registry.cn-hangzhou.aliyuncs.com/pasteus/pasteme-admin:0.0.2
    container_name: pasteme-admin
    volumes:
      - ./log:/app/log
      - ./config:/app/config
    ports:
      - 18001:18001

如果未能解决问题,欢迎继续跟帖。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants