folk.zone Wiki

a public knowledge base

Site Tools


troubleshooting:caddy_deploy_proxy_coolify_directly

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

troubleshooting:caddy_deploy_proxy_coolify_directly [2026/09/23 14:52] – created - external edit 127.0.0.1troubleshooting:caddy_deploy_proxy_coolify_directly [2026/10/23 15:46] (current) – external edit 127.0.0.1
Line 3: Line 3:
 **Status:** Resolved\ **Status:** Resolved\
 **Date:** 2026-05-27\ **Date:** 2026-05-27\
-**Affected service:** [[folkzone:services:caddy|Caddy]], [[folkzone:services:coolify|Coolify]]+**Affected service:** [[folkzone:services:caddy|Caddy]], Coolify
  
 ===== Symptom ===== ===== Symptom =====
Line 11: Line 11:
 ===== Misdiagnosis ===== ===== Misdiagnosis =====
  
-The [[folkzone:troubleshooting:cloudflare_named_tunnel_remote_config|Cloudflare tunnel uses remote configuration from the dashboard]], not the local ''cloudflared/config.yml'' ingress rules. Several changes were made to the remote config that did not fix the issue and introduced new failures:+The [[troubleshooting:cloudflare_named_tunnel_remote_config|Cloudflare tunnel uses remote configuration from the dashboard]], not the local ''cloudflared/config.yml'' ingress rules. Several changes were made to the remote config that did not fix the issue and introduced new failures:
  
-  - Routed ''deploy.folk.zone'' directly to ''http://172.18.0.1:8000'' (Coolify's host port, bypassing Caddy) — timed out due to firewall +  - Routed ''deploy.folk.zone'' directly to ''http://172.18.0.1:8000'' (Coolify's host port, bypassing Caddy): timed out due to firewall 
-  - Removed ''deploy.folk.zone'' from the tunnel entirely — 404 +  - Removed ''deploy.folk.zone'' from the tunnel entirely: 404 
-  - Put it back as ''http://caddy:80'' (correct) — deploy still broken due to the Caddyfile issue below+  - Put it back as ''http://caddy:80'' (correct): deploy still broken due to the Caddyfile issue below
  
 ===== Root Cause ===== ===== Root Cause =====
  
-The Caddyfile ''@deploy'' handler was proxying to ''172.18.0.1:80'' — the Docker host gateway, where Coolify's Traefik proxy listens. However, Traefik has no route configured for ''deploy.folk.zone'', so it returned 404 for every request.+The Caddyfile ''@deploy'' handler was proxying to ''172.18.0.1:80'': the Docker host gateway, where Coolify's Traefik proxy listens. However, Traefik has no route configured for ''deploy.folk.zone'', so it returned 404 for every request.
  
 <code> <code>
-# Inside cafe-caddy-1 container — confirmed Traefik returns 404+# Inside cafe-caddy-1 container: confirmed Traefik returns 404
 wget -qO- --header 'Host: deploy.folk.zone' http://172.18.0.1:80 wget -qO- --header 'Host: deploy.folk.zone' http://172.18.0.1:80
 # → HTTP/1.1 404 Not Found # → HTTP/1.1 404 Not Found
Line 32: Line 32:
  
 <code> <code>
-# Confirmed — Coolify responds directly on cafe_cafe_net+# Confirmed: Coolify responds directly on cafe_cafe_net
 docker inspect coolify --format '{{json .NetworkSettings.Networks}}' docker inspect coolify --format '{{json .NetworkSettings.Networks}}'
 # cafe_cafe_net: 172.18.0.7 # cafe_cafe_net: 172.18.0.7
Line 43: Line 43:
  
 <code caddy> <code caddy>
-# Before (broken — Traefik has no route for deploy.folk.zone)+# Before (broken: Traefik has no route for deploy.folk.zone)
 @deploy host deploy.folk.zone @deploy host deploy.folk.zone
 handle @deploy { handle @deploy {
Line 49: Line 49:
 } }
  
-# After (working — proxy directly to Coolify container)+# After (working: proxy directly to Coolify container)
 @deploy host deploy.folk.zone @deploy host deploy.folk.zone
 handle @deploy { handle @deploy {
Line 71: Line 71:
 # From the host # From the host
 curl -s -o /dev/null -w '%{http_code}' -H 'Host: deploy.folk.zone' http://localhost:8082 curl -s -o /dev/null -w '%{http_code}' -H 'Host: deploy.folk.zone' http://localhost:8082
-# → 302 (Coolify login redirect — correct)+# → 302 (Coolify login redirect: correct)
 </code> </code>
  
 ===== See Also ===== ===== See Also =====
-  * [[folkzone:troubleshooting:start|Homelab Troubleshooting Index]] +  * [[troubleshooting:start|Homelab Troubleshooting Index]] 
-  * [[folkzone:troubleshooting:caddy_traefik_port_conflict|Caddy Port Conflict with Coolify Traefik]] +  * [[troubleshooting:caddy_traefik_port_conflict|Caddy Port Conflict with Coolify Traefik]] 
-  * [[folkzone:troubleshooting:cloudflare_named_tunnel_remote_config|Named Tunnels Use Remote Configuration]]+  * [[troubleshooting:cloudflare_named_tunnel_remote_config|Named Tunnels Use Remote Configuration]]
   * [[folkzone:services:caddy|Caddy]]   * [[folkzone:services:caddy|Caddy]]
-  * [[folkzone:services:coolify|Coolify]]+  * Coolify
   * [[start|Return to wiki home]]   * [[start|Return to wiki home]]
  
troubleshooting/caddy_deploy_proxy_coolify_directly.1790196766.txt.gz · Last modified: by 127.0.0.1