HTTP basic auth
Hello, is it possible inside the Railway, to configure restriction for HTTP with basic auth. similar to Nginx restriciton with basic auth. e.g, i want my staging root URL to restrict HTTP with basic authentication. is it possible inside Railway with any service?
Solution:Jump to solution
aka your app has to handle this, there is no option in railway to add basic auth to your app
10 Replies
Project ID:
N/A
N/A
I can't see a reason why it wouldn't be possible
You can use literal nginx to do that, or create a logic inside of the app itself do handle that
Solution
aka your app has to handle this, there is no option in railway to add basic auth to your app
A saw a service for basic auth with nginx proxy on railway, but is not used for what im trying to achieve. So just was wondering if is possible to do it with Railway
I was trying to restrict access to my domain for staging. Simply if you will try to reach that domain with browser, it will require username and pw.
Not so easy mate. It would be easy if my frontend was with nginx web server
what is your frontend?
I'm super curious what your frontend is
Next
i dont see why you couldn’t add basic auth to that, one way or another at least.
but regardless the answer is the same, its something your app itself needs to handle.
just use next middleware