cloudflared: refine config.yml
authorSergey Ponomarev <stokito@gmail.com>
Sat, 3 Feb 2024 20:13:22 +0000 (22:13 +0200)
committerTianling Shen <cnsztl@gmail.com>
Sun, 4 Feb 2024 02:47:41 +0000 (10:47 +0800)
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>
net/cloudflared/files/cloudflared.config
net/cloudflared/files/sample_config.yml

index 041348cc57b0018859ca815255ca78db6adf932f..b01abf1759632f8316246d005dda23de15a831d0 100644 (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 ''
index 93ff07b56dc8fb43c551f747f70f5c365c61c5ab..1b3a5544a24ec36ca90fe7c1769e09a3203f30cd 100644 (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