cloudflared: refine config.yml

The config.yml is an example of a tunnel local configuration.
But the cloudlfared treat it as a real config and fails to start.
So to avoid problems let's comment all the statements.

The `url: http://localhost:8000` is not a valid config option.

Additionally add a smale of configuring ingres rules.

The cloudflared.config has missing option token.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit b3580a76d8)
This commit is contained in:
Sergey Ponomarev 2024-02-03 22:13:22 +02:00 committed by Tianling Shen
parent 80b3c476a7
commit ac3fa0b87e
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,7 @@
config cloudflared 'config'
option enabled '0'
option token ''
option config '/etc/cloudflared/config.yml'
option origincert '/etc/cloudflared/cert.pem'
option region ''

View File

@ -1,3 +1,9 @@
url: http://localhost:8000
tunnel: <Tunnel-UUID>
credentials-file: /etc/cloudflared/<Tunnel-UUID>.json
#tunnel: <Tunnel-UUID>
#credentials-file: /etc/cloudflared/<Tunnel-UUID>.json
#
#ingress:
# - hostname: luci.example.com
# service: http://localhost:80
# - hostname: ssh.example.com
# service: ssh://localhost:22
# - service: http_status:404