How to configure multiple tunnels on the config.yml file?

I tried it this way but is not working: C:\Users\RUAN\.cloudflared\config.yml
tunnel: 7f33eee0-...
credentials-file: C:\Users\RUAN\.cloudflared\7f33eee0-...json

ingress:
- hostname: zzz.com
service: http://localhost:8090
- service: http_status:404
origin-ca-pool: C:\Users\RUAN\.cloudflared\cert.pem

tunnel: 8fe9e2ed-...
credentials-file: C:\Users\RUAN\.cloudflared\8fe9e2ed-....json
ingress:
- hostname: zzz.com
service: http://localhost:8090
- service: http_status:404
origin-ca-pool: C:\Users\RUAN\.cloudflared\cert.pem
tunnel: 7f33eee0-...
credentials-file: C:\Users\RUAN\.cloudflared\7f33eee0-...json

ingress:
- hostname: zzz.com
service: http://localhost:8090
- service: http_status:404
origin-ca-pool: C:\Users\RUAN\.cloudflared\cert.pem

tunnel: 8fe9e2ed-...
credentials-file: C:\Users\RUAN\.cloudflared\8fe9e2ed-....json
ingress:
- hostname: zzz.com
service: http://localhost:8090
- service: http_status:404
origin-ca-pool: C:\Users\RUAN\.cloudflared\cert.pem
1 Reply
Cyb3r-Jak3
Cyb3r-Jak33w ago
Each tunnel needs its own configuration file You would have to make something like config1.yml and config2.yml and point to those in your tunnel run command

Did you find this page helpful?