]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Use local website for research
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 6 Feb 2021 22:36:08 +0000 (23:36 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 6 Feb 2021 22:36:08 +0000 (23:36 +0100)
modules/private/websites/immae/production.nix

index 7228120a16304859abe42d35a4abdd1bec28805f..439b455171f3b9bae2bdb95fc21306e8f52943f4 100644 (file)
@@ -106,9 +106,14 @@ in {
       certName    = "immae";
       addToCerts  = true;
       hosts       = [ "bouya.org" "www.bouya.org" ];
-      root        = null;
+      root        = rechercheDir;
       extraConfig = [ ''
-        RedirectMatch 301 ^/((?!\.well-known.*$).*)$ https://www.normalesup.org/~bouya/
+        <Directory ${rechercheDir}>
+          DirectoryIndex index.htm index.html
+          Options Indexes FollowSymLinks MultiViews Includes
+          AllowOverride All
+          Require all granted
+        </Directory>
         '' ];
     };
   };