fix: caddy livekit

This commit is contained in:
Juan
2026-04-01 20:04:25 -05:00
parent da8f7ba1b5
commit 127d58000c
2 changed files with 7 additions and 20 deletions

View File

@@ -300,7 +300,6 @@ services:
ports:
- "80:80"
- "443:443"
- "8888:8888" # Hatchet dashboard (proxied with TLS)
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy_data:/data
@@ -340,6 +339,7 @@ services:
postgres:
condition: service_healthy
ports:
- "0.0.0.0:8888:8888" # Hatchet dashboard (plain HTTP — no TLS)
- "127.0.0.1:7078:7077"
env_file:
- ./.env.hatchet

View File

@@ -1376,6 +1376,8 @@ step_caddyfile() {
}"
fi
local hatchet_proxy_block=""
if [[ -n "$TLS_CERT_PATH" ]] && [[ -n "$CUSTOM_DOMAIN" ]]; then
# Custom domain with user-provided TLS certificate (from --custom-ca directory)
cat > "$caddyfile" << CADDYEOF
@@ -1387,7 +1389,7 @@ $CUSTOM_DOMAIN {
}
handle /health {
reverse_proxy server:1250
}${lk_proxy_block}
}${lk_proxy_block}${hatchet_proxy_block}
handle {
reverse_proxy web:3000
}
@@ -1404,7 +1406,7 @@ $CUSTOM_DOMAIN {
}
handle /health {
reverse_proxy server:1250
}${lk_proxy_block}
}${lk_proxy_block}${hatchet_proxy_block}
handle {
reverse_proxy web:3000
}
@@ -1425,7 +1427,7 @@ CADDYEOF
}
handle /health {
reverse_proxy server:1250
}${lk_proxy_block}
}${lk_proxy_block}${hatchet_proxy_block}
handle {
reverse_proxy web:3000
}
@@ -1439,23 +1441,8 @@ CADDYEOF
ok "Caddyfile already exists"
fi
# Add Hatchet dashboard route (Hatchet is always-on for all multitrack pipelines)
if [[ "$DAILY_DETECTED" == "true" ]] || [[ "$LIVEKIT_DETECTED" == "true" ]]; then
if ! grep -q "hatchet" "$caddyfile" 2>/dev/null; then
cat >> "$caddyfile" << CADDYEOF
# Hatchet workflow dashboard (multitrack processing)
:8888 {
tls internal {
on_demand
}
reverse_proxy hatchet:8888
}
CADDYEOF
ok "Added Hatchet dashboard route to Caddyfile (port 8888)"
else
ok "Hatchet dashboard route already in Caddyfile"
fi
ok "Hatchet dashboard available at port 8888"
fi
}