diff options
author | Sergey Ponomarev <stokito@gmail.com> | 2024-02-03 22:13:22 +0200 |
---|---|---|
committer | Tianling Shen <cnsztl@gmail.com> | 2024-02-04 10:47:41 +0800 |
commit | b3580a76d8a4bc0bfa075ba3da945bfe92526871 (patch) | |
tree | 1a8fc37d0af1c4c90e1b3132dfe1fb5a62b988b7 /net | |
parent | d6c4223d6302370532feb806706c7ac1e2f2ed9d (diff) |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/cloudflared/files/cloudflared.config | 1 | ||||
-rw-r--r-- | net/cloudflared/files/sample_config.yml | 12 |
2 files changed, 10 insertions, 3 deletions
diff --git a/net/cloudflared/files/cloudflared.config b/net/cloudflared/files/cloudflared.config index 041348cc5..b01abf175 100644 --- a/net/cloudflared/files/cloudflared.config +++ b/net/cloudflared/files/cloudflared.config @@ -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 '' diff --git a/net/cloudflared/files/sample_config.yml b/net/cloudflared/files/sample_config.yml index 93ff07b56..1b3a5544a 100644 --- a/net/cloudflared/files/sample_config.yml +++ b/net/cloudflared/files/sample_config.yml @@ -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 |