how to configure auth0 with a railway nodeJS / express app?
dkossman
HOBBYOP
2 years ago
I have a fairly simple nodeJS/express app. this runs fine on my local mac, but I can't figure out how to get the auth0 authentication flows to work when the app is deployed on railway.
it seems to be related to the fact that on railway i have to run the http server at 0.0.0.0:443 whereas on my mac i run it at e.g mac-mini.local:443 and auth0 authentication flows work fine.
I've set up the "Allowed callback URL's" in the auth0 config to include https://0.0.0.0:443/callback etc, but after i log in i'm seeing errors like
"Not allowed to use restricted network host "0.0.0.0": https://0.0.0.0/callback"
Is there a guide somewhere on how to configure auth0/your app when running on railway?
thanks - any suggestions appreciated.
