-
Notifications
You must be signed in to change notification settings - Fork 24
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
Casdoor Online Deployment #933
Comments
最新代码发布线上后遇到登录状态丢失的问题;排查是 casdoor 在未配置 redis endpoint 作为 session storage 的情况下会使用本地的临时文件存储 session,多台机器间 session 信息不共享;之前没问题应该是因为之前线上 casdoor 只有一台服务器在提供服务。 因为 LB 是 QVM(luckin)提供的能力,不支持 session 保持,计划在 LB 与 casdoor 服务之间的 nginx 上增加基于 iphash 的 session persistence 作为临时方案;长期来看我们可以部署一个 redis 用于 session 共享。 |
@hsluoyz We plan to deploy the Casdoor frontend (everything built from Are there any potential risks we should consider? |
配置 builder 走 vercel 部署的 casdoor,会有个问题,从登录跳转的角度看应该配置 endpoint acc-web.goplus.org,但是从接口调用看应该走 acc-api.goplus.org,配置 VITE_CASDOOR_ENDPOINT=https://acc-web.goplus.org 的话就会接口不通 调整方案为,只将静态资源走 CDN(acc-static.gopluscdn.com),页面与接口一起走 VM(acc.goplus.org)
|
close #878
使用本地项目测试走 acc-web.goplus.org 登录 OK调整线上 builder 配置,测试登录 OKspx-gui 配置 VITE_CASDOOR_ENDPOINT 为 acc-web.goplus.orgspx-backend 配置 GOP_CASDOOR_ENDPOINT 为 acc-api.goplus.org配置 acc.goplus.org 指向 vercel 项目调整线上 builder 配置,测试登录 OKspx-gui 配置 VITE_CASDOOR_ENDPOINT 为 acc.goplus.org添加新的 organization(可能已存在)& application/clientGoPlus
,测试登录 OKThe text was updated successfully, but these errors were encountered: