R
Railway11mo ago
Mirand

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:
aka your app has to handle this, there is no option in railway to add basic auth to your app
Jump to solution
10 Replies
Percy
Percy11mo ago
Project ID: N/A
Mirand
Mirand11mo ago
N/A
maddsua
maddsua11mo ago
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
Brody
Brody11mo ago
aka your app has to handle this, there is no option in railway to add basic auth to your app
Mirand
Mirand11mo ago
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
Brody
Brody11mo ago
what is your frontend?
maddsua
maddsua11mo ago
I'm super curious what your frontend is
Mirand
Mirand11mo ago
Next
Brody
Brody11mo ago
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.
maddsua
maddsua11mo ago
just use next middleware
Want results from more Discord servers?
Add your server