8 months ago
I'm trying to route traffic to a private service via a Caddy service. Here's my Caddyfile:
{
admin off
persist_config off
auto_https off
log {
format json
}
servers {
trusted_proxies static private_ranges
}
}
:{$PORT} {
reverse_proxy {
dynamic a {
name {$API_URL}
port {$API_PORT}
refresh 1s
dial_timeout 30s
versions ipv4 ipv6
}
header_up Host {upstream_hostport}
}
log {
output stdout
format console
}
}
Currently every time I make a request I get a 502 error. In the logs, I don't see any entries. Thanks in advance!
1 Replies
8 months ago
Hello,
Please see our docs on this topic -
https://docs.railway.com/guides/fixing-common-errors#application-failed-to-respond
Status changed to Awaiting User Response Railway • 8 months ago