CyberPanel + Cloudflare proxy trick

I tried to make CyberPanel appear under the Cloudflare proxy.

extprocessor cyberpanel {
  type                    proxy
  maxConns                100
  pcKeepAliveTimeout      60
  initTimeout             60
  retryTimeout            0
  respBuffer              0
RewriteEngine On
REWRITERULE ^(.*)$ HTTP://cyberpanel/$1 [P]

Will this setup work?
Will the automatic reissue of certificates work correctly?

Change port to 8443 instead of 8090
Cloudflare doesn’t support the port 8090.
You can also choose por 2096, 2087 and so on for https.
More info:

Regarding the certificate, i use the cert issued by cloudflare itself.

1 Like

Thank you, this is a solution.
I think it’s hard to find it in the CyberPanel documentation.

Have you uploaded Cloudflare Origin Certificate to your server?

Yes, i went to List Websites → Manage
On the SSL part it asks you for the cert and key, i added the ones cloudflare generated.

And that was it.

I think i had an issue still, and changed from Full (strict) to Full, i think its because it didn’t updated the hostname certificate, but i was just testing so no issue there.

To use the full (strict) you probably need to manually change the hostname cert file

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.