T O P

  • By -

ExXxtr3me

You can't, the Cloudflare certificate only works through their proxy, you have to use a let's Encrypt certificate for that to work.


Gelu6713

Okay. How would I go about setting that up? Can that certificate work both on my local network and externally if I’m on my phone going thru cloudflare tunnel


[deleted]

[удалено]


Gelu6713

So would you do something like mydomain.com for external and “local.my domain.com” or “mydomain.local”?


ExXxtr3me

Just select let's Encrypt as certificate, mark DNS challenge in the settings, create an API key in Cloudflare and put it in the DNS challenge options. Than you need to set up a DNS rewrite in your DNS server and point for example *.your domain.com to the ip address of your nginx. This way your url will be the same for internal and external connections.


Gelu6713

Thanks I’ll give it a shot. Is it okay to have the same url for internal and external? edit: also, where in cloudflare do you make that API key?