aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--virtual/eldiron.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix
index c347029..50aaeab 100644
--- a/virtual/eldiron.nix
+++ b/virtual/eldiron.nix
@@ -88,7 +88,30 @@
88 adminAddr = "httpd@immae.eu"; 88 adminAddr = "httpd@immae.eu";
89 extraModules = [ 89 extraModules = [
90 "proxy_fcgi" # for PHP 90 "proxy_fcgi" # for PHP
91 "macro"
92 "ldap"
93 "authnz_ldap"
91 ]; 94 ];
95 extraConfig = ''
96 <IfModule ldap_module>
97 LDAPSharedCacheSize 500000
98 LDAPCacheEntries 1024
99 LDAPCacheTTL 600
100 LDAPOpCacheEntries 1024
101 LDAPOpCacheTTL 600
102 </IfModule>
103
104 <Macro LDAPConnect>
105 <IfModule authnz_ldap_module>
106 AuthLDAPURL ldap://ldap.immae.eu:389/dc=immae,dc=eu
107 AuthLDAPBindDN cn=httpd,ou=services,dc=immae,dc=eu
108 AuthLDAPBindPassword "${builtins.getEnv "NIXOPS_HTTP_LDAP_PASSWORD"}"
109 AuthType Basic
110 AuthName "Authentification requise (Acces LDAP)"
111 AuthBasicProvider ldap
112 </IfModule>
113 </Macro>
114 '';
92 virtualHosts = [ 115 virtualHosts = [
93 (withSSL "eldiron" // { 116 (withSSL "eldiron" // {
94 listen = [ { ip = "*"; port = 443; } ]; 117 listen = [ { ip = "*"; port = 443; } ];