Answer the question
In order to leave comments, you need to log in
How to set up authorization in nginx by login password stored in Postgresql installed on another server?
There are two servers on debian. On one nginx only for uploading files and authorization through nginx with a login-password file. On the other, authorization by login password from postgresql. I would like to make the same logins-passwords for both servers, ideally without re-authorization on another server, or at least using the same login-password.
Answer the question
In order to leave comments, you need to log in
write a script (for example, in PHP) that will perform authorization and redirect using X-Accell-Redirect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question