Rem
Rem
RRailway
Created by Rem on 10/16/2023 in #✋|help
Custom Font Node app
Hi! I need to use a font in my node app (for canvas). I have the TTF but I can't use it. How can i do this?
38 replies
RRailway
Created by Rem on 10/4/2023 in #✋|help
SOLVED: caddy reverse proxy error 502 (can't find host)
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}
}
{
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
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
13 replies