Want to add multiple HTTP Origins on Cloudflare Tunnel so that multiple services will resolve on different subdomains?
Commands Used:
cd /etc/cloudflared
sudo nano config.yml
Config.yml file
tunnel: {tunnel-id}
credentials-file: /home/{username}/.cloudflared/{tunnel-id}
ingress:
hostname: docker.yargen.ga
service: http://localhost:9000
hostname: wordpress.yargen.ga
service: http://localhost:2095
hostname: vault.yargen.ga
service: http://localhost:2082
Catch-all rule, which just responds with 404 if traffic doesn't match any of
the earlier rules
service: http_status:404
cloudflared tunnel route dns {UUID or NAME} {hostname}