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

docker部署加上OAuth2后反复调整登录页面,或者模型启动的时候跳转登录页面 #2699

Open
1 of 3 tasks
rundreamsFly opened this issue Dec 24, 2024 · 1 comment
Labels
Milestone

Comments

@rundreamsFly
Copy link

System Info / 系統信息

Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?

  • docker / docker
  • pip install / 通过 pip install 安装
  • installation from source / 从源码安装

Version info / 版本信息

Release: v1.1.0

The command used to start Xinference / 用以启动 xinference 的命令

docker run --name xinf_auth -idt -v /data/xinference-docker2/.xinference:/root/.xinference -v /data/xinference-docker2/.cache/huggingface:/root/.cache/huggingface -v /data/xinference-docker2/.cache/modelscope:/root/.cache/modelscope -v /data/models:/data/models -v /data/xinf/auth_config.json:/xinference/auth-config.json -p 8007:9997 --gpus all --shm-size 20g 1bb64a5fa32c xinference-local -H 0.0.0.0 --auth-config /xinference/auth-config.json

Reproduction / 复现过程

auth_config.json 代码

{
"auth_config": {
"algorithm": "HS256",
"secret_key": "09d25e094faa6ca2556c818166b7a9563b93f7099f6f0f4caa6cf63b88e8d3e7",
"token_expire_in_minutes": 3000
},
"user_config": [
{
"username": "admin",
"password": "xinfadmin",
"permissions": [
"admin"
],
"api_keys": [
"sk-72tkvudyGLPMi",
"sk-ZOTLIY4gt9w11"
]
},
{
"username": "user2",
"password": "secret2",
"permissions": [
"models:list",
"models:read"
],
"api_keys": [
"sk-35tkasdyGLYMy",
"sk-ALTbgl6ut981w"
]
}
]
}

当我新打开浏览器的时候,偶尔又是正常的。
image

Expected behavior / 期待表现

通过OAuth2登录成功后,正常访问及操作。

@XprobeBot XprobeBot added the gpu label Dec 24, 2024
@XprobeBot XprobeBot added this to the v1.x milestone Dec 24, 2024
@qinxuye
Copy link
Contributor

qinxuye commented Dec 24, 2024

清除缓存试下。

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

No branches or pull requests

3 participants