L
L
longcat2015-03-19 13:03:29
PostgreSQL
longcat, 2015-03-19 13:03:29

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

2 answer(s)
A
Andrey Burov, 2015-03-19
@longcat

write a script (for example, in PHP) that will perform authorization and redirect using X-Accell-Redirect

A
Andrey Korvyakov, 2015-03-19
@LNShadow

Example #4 from https://github.com/FRiCKLE/ngx_postgres

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question