]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - nixops/modules/websites/tools/cloud/nextcloud.nix
Move tools websites to stable web directories
[perso/Immae/Config/Nix.git] / nixops / modules / websites / tools / cloud / nextcloud.nix
index ac77920a7afcde1880fa0d2c2125be2ba62a4ef0..d9e0be07731973da148418c2c575d90f62cee4f7 100644 (file)
@@ -214,13 +214,15 @@ let
         fi
       '';
     };
-    apache = {
+    apache = rec {
       user = "wwwrun";
       group = "wwwrun";
       modules = [ "proxy_fcgi" ];
+      webappName = "tools_nextcloud";
+      root = "/run/current-system/webapps/${webappName}";
       vhostConf = ''
         SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
-        <Directory ${webRoot}>
+        <Directory ${root}>
           AcceptPathInfo On
           DirectoryIndex index.php
           Options FollowSymlinks