R
Railway15mo ago
hitesh

ingress auth kind of facility?

Folks, I am looking for something that can be used as a middleware to validate JWT tokens and then proxy to a service. For example, in k8 nginx ingress you can do this
nginx.ingress.kubernetes.io/auth-url: http://backend-local.default.svc.cluster.local/
nginx.ingress.kubernetes.io/auth-method: POST
nginx.ingress.kubernetes.io/auth-url: http://backend-local.default.svc.cluster.local/
nginx.ingress.kubernetes.io/auth-method: POST
So your service will first hit the auth-url and open validation do some work(set headers etc). How can we possibly do this on railway?
8 Replies
Percy
Percy15mo ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Percy
Percy15mo ago
No project ID was provided. Closing thread.
hitesh
hiteshOP15mo ago
sorry what? Its a general question
hitesh
hiteshOP15mo ago
Railway
404 - Page not found
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
ThallesComH
ThallesComH15mo ago
Railway doesn't offer a way, but you can setup Caddy or Nginx and proxy your traffic through there. Then you can setup whatever you want
hitesh
hiteshOP15mo ago
You mean have nginx in a dockerfile?
Brody
Brody15mo ago
it would involve a dockerfile and a nginx.conf file yes. as thalles said railway doesn't offer authentication layers, it is up to the apps you deploy to handle their own authentication
hitesh
hiteshOP15mo ago
cool cool cool
Want results from more Discord servers?
Add your server