Moving from open Ports and Nginx Proxy Manager to Cloudflared #719
-
Hey guys, I am making heavy use of Nginx Proxy Manager and don't want to miss it. Listening on 80+443 for multiple domains/subdomains and redirecting to my internal network services. Also taking care of certs with LetsEncrypt. Currently I am trying to close my local ports and put everything through the cloudflared tunnel. Within the configuration I just enabled nginx_proxy_manager, tunnel is up. Now I think that I need to put the CNAME of my domains to the tunnel URL. Also the cloudflared documentation tells "directly to the tunnel URL". But where can I find this tunnel url?
And another question to add: what about the certs? Should nginx proxy manager still take care of them or is this done by the tunnel and I can remove all the cert stuff from nginx?
Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Dirk, Regarding https this kind of depends on your personal preference. All the traffic is encrypted from theclient via the Cloudflare Reverse Proxy to the tunnel. Since you are running NGINX as a HA add-on, the communication from the Cloudflared Docker container goes directly via the docker network to NGINX, so it does not leave the device. If you want this step to also be encrypted, you have to use https for that as well, which can all be configured. Kindly let me know if this helps or if you have any additional questions. Best |
Beta Was this translation helpful? Give feedback.
Hi Dirk,
regarding the CNAME, you described the correct URL. In the "normal" set-up, the add-on creates the CNAME for HA and all other additional_hosts for you, so we kind of neglected that, but might have to revisit it.
If you are heavily using NGINX, you can also work with wildcards in the CNAME and decide what to do with the requests in NGINX (e.g. CNAME *.example.com to the tunnel).
Regarding https this kind of depends on your personal preference. All the traffic is encrypted from theclient via the Cloudflare Reverse Proxy to the tunnel. Since you are running NGINX as a HA add-on, the communication from the Cloudflared Docker container goes directly via the docker network to NGINX, so…