Add pad lister tool #55
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
|
||||
additionalModules = [ pkgs.nginxModules.pam ];
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
|
@ -30,4 +32,8 @@
|
|||
email = "root@ifsr.de";
|
||||
};
|
||||
};
|
||||
security.pam.services.nginx.text = ''
|
||||
auth required ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
||||
account required ${pkgs.nss_pam_ldapd}/lib/security/pam_ldap.so
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -27,6 +27,10 @@ in
|
|||
root = pkgs.callPackage ../pkgs/padlist { };
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
extraConfig = ''
|
||||
auth_pam "LDAP Authentication Required";
|
||||
auth_pam_service_name "nginx";
|
||||
'';
|
||||
locations = {
|
||||
"= /" = {
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue