]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - virtual/packages/aten.nix
Add piedsjaloux website
[perso/Immae/Config/Nix.git] / virtual / packages / aten.nix
index 21bbff07df30f62d2a74ec5aec68229ec9359007..8251b31c490bd2ea5ed0d53d63f13112eb65adc0 100644 (file)
@@ -37,8 +37,6 @@ let
         assert checkEnv "NIXOPS_${varPrefix}_${envName}_SECRET";
         assert checkEnv "NIXOPS_${varPrefix}_${envName}_PSQL_URL";
       ''
-      Use Stats aten.pro
-
       <FilesMatch "\.php$">
         SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
       </FilesMatch>
@@ -60,6 +58,8 @@ let
         ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://aten.pro\"></html>"
       </Location>
       '' else ''
+      Use Stats aten.pro
+
       <Location /backend>
         Use LDAPConnect
         Require ldap-group   cn=aten.pro,cn=httpd,ou=services,dc=immae,dc=eu