אני לא מצליח להתחבר למערכת הניהול אחרי גיבוי בגלל Cloudflare

סיכום מבוסס בינה מלאכותית

The user cmdntd is unable to log in to the admin panel after restoring a backup, with the login screen stuck on ‘Sign Up’ and ‘Sign In’ buttons. They can log in only when SSL is disabled, suggesting a conflict with Cloudflare. pfaffman asks about DNS and host settings, and cmdntd confirms that disabling Cloudflare resolves the issue. Canapin references Discourse’s official stance, noting that Cloudflare and Discourse do not work well together due to SSL verification issues and performance features interfering with Discourse’s code. Stephen clarifies that the problem lies in the user’s implementation, not Cloudflare itself, as Let’s Encrypt cannot issue certificates when Cloudflare proxies traffic. The consensus is that Cloudflare’s benefits for Discourse are minimal, and its use is discouraged. cmdntd asks if the issue can be fixed in a future version, but the discussion concludes that the problem stems from misconfiguration, not a bug.

I can’t login to admin user after backup

  • I delete all of forum, keep backup
  • Create new one, and use this backup

After login successfullly, forum just keep “sign up” and “sign in” button, and nothing happened

  • rebuild app - not working
  • app doctor - nothing error
  • enter app, create new admin - not working with new user

How can I login? I don’t know what is happening

So you create a new admin with the rake task and cannot log in as that user?

Yes. But I logined successfully when disable SSL force, by command
There is big problem when old backup had enabled ít…

Is your DNS correctly pointing to your server?

Can you share your host name?

I fixed SSL, it seems ok now

Oh, and I realize big problem with Cloudflare
I have every prolems in settings when use Cloudflare cache

When I turn cloudflare off, it seems alright

https://meta.discourse.org/t/enable-a-cdn-for-your-discourse/14857

:warning: CloudFlare CDN and Discourse have not historically played well together, so we do not recommend running CloudFlare CDN at this time.

Since many users had issues with it, you can check the search and maybe find a solution in it: Search results for 'cloudflare #support ' - Discourse Meta

Could you fix cloudflare issue on next version?

Cloudflare isn’t broken, your implementation was.

Let’s Encrypt won’t enroll a certificate while CloudFlare is proxying. It prevents the verification from going through.

You can’t use any of their ‘performance’ features with Discourse as it alters the already-minified code.

All CloudFlare can do for you is hide your IP and act as a CDN for your uploads. The benefits are minimal.