Refactor cloudflared configuration to use external config file and update command syntax

This commit is contained in:
2026-04-24 21:05:21 +02:00
parent 8f81ffb4c5
commit 79c325329c
3 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -15,8 +15,9 @@ services:
restart: unless-stopped
profiles:
- cloudflare
command: ["tunnel", "--no-autoupdate", "run", "--credentials-file", "/etc/cloudflared/credentials.json", "homeserver"]
command: ["--config", "/etc/cloudflared/config.yml", "tunnel", "run"]
volumes:
- ./docker/cloudflared/config.yml:/etc/cloudflared/config.yml:ro
- /etc/cloudflared/credentials.json:/etc/cloudflared/credentials.json:ro
depends_on:
nginx:
+2 -1
View File
@@ -5,8 +5,9 @@ services:
restart: unless-stopped
profiles:
- cloudflare
command: ["tunnel", "--no-autoupdate", "run", "--credentials-file", "/etc/cloudflared/credentials.json", "homeserver"]
command: ["--config", "/etc/cloudflared/config.yml", "tunnel", "run"]
volumes:
- ./docker/cloudflared/config.yml:/etc/cloudflared/config.yml:ro
- /etc/cloudflared/credentials.json:/etc/cloudflared/credentials.json:ro
depends_on:
nginx:
+8
View File
@@ -0,0 +1,8 @@
tunnel: homeserver
credentials-file: /etc/cloudflared/credentials.json
ingress:
- service: https://nginx:443
originRequest:
noTLSVerify: true
- service: http_status:404