Hi,
I am trying to setup a caddy reverse proxy.
caddyfile
{
admin off
persist_config off
auto_https off
log {
format console
}
servers {
trusted_proxies static private_ranges
}
}
:{$PORT} {
log {
format console
}
reverse_proxy {$FRONTEND_HOST}
reverse_proxy {$BACKEND_HOST}
}
proxy env vars:
FRONTEND_HOST=http://dashboard.railway.internal:3000
BACKEND_HOST=http://api.railway.internal:3000
My main focus now is the API
the API is listening to :::3000 (this is working)
When I go to my domain /api
I get error 502