Caddy reverse-proxy to railway service returning 502
mtwichel
PROOP

a year 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!

Solved

1 Replies


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...