Reputation: 12275
I have about 10 or so services running on Docker containers. I am wondering if it would be possible to setup Nginx-Proxy-Manager running in a Docker container connecting to Cloudflare Argo as the main domain, https://example.com. Then setup subdomain DNS records, pointing to the root, so all requests are sent to Nginx-Proxy-Manager, as it would normally be setup, and have Nginx-Proxy-Manager route the request to the proper requested service. Essentially, can Nginx-Proxy-Manager OR NGINX as a reverse proxy be setup to work with a Cloudflare Argo Tunnel? I can't seem to get this properly setup and working.
Upvotes: 4
Views: 4885
Reputation: 21
I'm aware this answer is very late...
For anyone else reading: Yes, as Harkal says, it is possible but requires a lot of manual work.
You will have to set up an argo tunnel on your server with ingress rules and DNS record routing. For each proxy server made in Nginx Proxy Manager, the argo tunnel will require a defined ingress rule that matches the DNS route.
Assuming you are somewhat familar with creating argo tunnels by cloudflared, your config.yml file will look somewhat like
tunnel: tunnel_id_generated_by_cloudflared
credentials-file: route_to_creds_file_generated_by_cloudflared
ingress:
- hostname: subdomain.domain.xyz
service: http://localhost:80
- hostname: app1.domain.xyz
service: http://localhost:1234
- hostname: admin.domain.xyz
service: http://localhost:81
- service: http_status:404
where you have already ran
cloudflared tunnel route dns <UUID or NAME> www.app.com
(or configured on www.cloudflare.com) for each service
Please, if you need clarification, reply and I will do my best to help you.
Upvotes: 2