cloudflare / cloudflare/cloudflared

Creating route records defined in config file

Open
#551 5 comments 5 reactions 0 assignees View on GitHub
Type: Enhancement Type: Feature Request
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Any chance to call something similar to `cloudflared tunnel --config /data/options.yaml run` and the command create route records automatically ?

options.yaml
```
# this is new feature (it is a suggestion!)
route: # does it make sense to be a list ?
- dns: www.app.com # could it be read from ingress list instead ?
- dns: www2.app.com # could it be read from ingress list instead ?
- ld: # load balancer
name: ...
pool: ...
- ip: 10.0.0.0/8

# everything else already exist
no-autoupdate: true
originRequest: {}
metrics: localhost:41705
ingress:
- service: http://localhost:8123 # homeassistant
hostname: www.app.com
- service: http://localhost:3000 # nodejs
hostname: www2.app.com
- service: http_status:404
tunnel: my_tunnel
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.