CyberPanel Community

ClosedCyberPanel + Cloudflare proxy trick

br
brizing #1

Hello.
I tried to make CyberPanel appear under the Cloudflare proxy.

extprocessor cyberpanel {
  type                    proxy
  address                 https://data.sercet.com:8090
  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?

3 replies
tb
tbaldur #2

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.

br
brizing #3

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?

tb
tbaldur #4

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

Sign in to reply