We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
无
Release: v1.1.0
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
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" ] } ] }
当我新打开浏览器的时候,偶尔又是正常的。
通过OAuth2登录成功后,正常访问及操作。
The text was updated successfully, but these errors were encountered:
清除缓存试下。
Sorry, something went wrong.
No branches or pull requests
System Info / 系統信息
无
Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece?
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"
]
}
]
}
当我新打开浏览器的时候,偶尔又是正常的。
Expected behavior / 期待表现
通过OAuth2登录成功后,正常访问及操作。
The text was updated successfully, but these errors were encountered: