Caddy reverse-proxy to railway service returning 502

mtwichel
HOBBY

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!

Awaiting User Response

1 Replies


Status changed to Awaiting User Response Railway 8 months ago