Closed LiveWithCodeAnkit closed 3 weeks ago
👀 @LiveWithCodeAnkit
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Hey @LiveWithCodeAnkit! I'm here to help you with any bugs, questions, or contributions you have. Let's work together to solve this!
Yes, Lobe chat self-hosting can be deployed using Cloudflare Advanced Deployment options, specifically by configuring Cloudflare Zero Trust Authentication Service for Single Sign-On (SSO).
Supporting evidence and steps from the document:
Creating an Application in Cloudflare Zero Trust:
https://one.dash.cloudflare.com/
and go to Access - Applications
.Add an application
and select SaaS
.LobeChat SSO
), select OIDC
, and add the application.https://chat.example.com/api/auth/callback/cloudflare-zero-trust
(replace chat.example.com
with your instance's address).Client secret
, Client ID
, and Issuer
.Configure Environment Variables:
NEXT_AUTH_SECRET=<generated_secret>
NEXT_AUTH_SSO_PROVIDERS=cloudflare-zero-trust
CLOUDFLARE_ZERO_TRUST_CLIENT_ID=<client_id>
CLOUDFLARE_ZERO_TRUST_CLIENT_SECRET=<client_secret>
CLOUDFLARE_ZERO_TRUST_ISSUER=<issuer>
NEXTAUTH_URL=https://example.com/api/auth
After configuring these settings, users will be able to authenticate with LobeChat using Cloudflare Zero Trust [1].
To continue talking to Dosu, mention @dosu.
Cloudflare don't support nodejs runtime. So it's impossible to deploy LobeChat on CF now.
✅ @LiveWithCodeAnkit
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。
📝 Reference
https://github.com/lobehub/lobe-chat/tree/main/docs/self-hosting/server-database.mdx
I am trying to deploy on Cloudflare. I followed all the steps, including integrating my Git repository and adding all the necessary environment variables according to the Cloudflare documentation. I also updated the wrangler.toml file in the root directory. However, I am facing some errors.
Can you help me resolve these issues?