Nginx: Difference between revisions

imported>Kvtb
Authentication via PAM
imported>Kvtb
refer to issue 93580
Line 134: Line 134:
</syntaxhighlight>
</syntaxhighlight>


However, if the password of the user is stored in /etc/shadow, nginx by default will not be able to check the password. Nginx needs to run as root:
However, if the password of the user is stored in /etc/shadow, nginx by default will not be able to check the password. Nginx needs to run as root. Running as root will not be needed if issue {{issue|93580}} gets solved. For now, the workaround is:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 143: Line 143:
};
};
</syntaxhighlight>
</syntaxhighlight>


==== TLS reverse proxy ====
==== TLS reverse proxy ====