aboutsummaryrefslogtreecommitdiff
path: root/nixops/modules/websites/chloe
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 14:50:08 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-02-16 14:50:08 +0100
commit7da3ceece7fe6c49046e97f37fc353db9b8a981c (patch)
tree623849d979508b007b1b6e4e42976b64e30b2cf1 /nixops/modules/websites/chloe
parente5073addbe397afd596613af469f3308a07c1801 (diff)
downloadNix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.tar.gz
Nix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.tar.zst
Nix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.zip
Move production websites to use stable web directories
Diffstat (limited to 'nixops/modules/websites/chloe')
-rw-r--r--nixops/modules/websites/chloe/chloe.nix6
-rw-r--r--nixops/modules/websites/chloe/default.nix2
2 files changed, 4 insertions, 4 deletions
diff --git a/nixops/modules/websites/chloe/chloe.nix b/nixops/modules/websites/chloe/chloe.nix
index 3b92af3..80e5554 100644
--- a/nixops/modules/websites/chloe/chloe.nix
+++ b/nixops/modules/websites/chloe/chloe.nix
@@ -56,16 +56,16 @@ let
56 SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" 56 SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
57 </FilesMatch> 57 </FilesMatch>
58 58
59 <Directory ${if environment == "dev" then root else webRoot}> 59 <Directory ${root}>
60 DirectoryIndex index.php index.htm index.html 60 DirectoryIndex index.php index.htm index.html
61 Options -Indexes +FollowSymLinks +MultiViews +Includes 61 Options -Indexes +FollowSymLinks +MultiViews +Includes
62 Include ${if environment == "dev" then root else webRoot}/htaccess.txt 62 Include ${root}/htaccess.txt
63 63
64 AllowOverride AuthConfig FileInfo Limit 64 AllowOverride AuthConfig FileInfo Limit
65 Require all granted 65 Require all granted
66 </Directory> 66 </Directory>
67 67
68 <DirectoryMatch "${if environment == "dev" then root else webRoot}/squelettes"> 68 <DirectoryMatch "${root}/squelettes">
69 Require all denied 69 Require all denied
70 </DirectoryMatch> 70 </DirectoryMatch>
71 71
diff --git a/nixops/modules/websites/chloe/default.nix b/nixops/modules/websites/chloe/default.nix
index d647eb9..f561834 100644
--- a/nixops/modules/websites/chloe/default.nix
+++ b/nixops/modules/websites/chloe/default.nix
@@ -53,7 +53,7 @@ in {
53 services.myWebsites.production.vhostConfs.chloe = { 53 services.myWebsites.production.vhostConfs.chloe = {
54 certName = "chloe"; 54 certName = "chloe";
55 hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ]; 55 hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ];
56 root = chloe_prod.webRoot; 56 root = chloe_prod.apache.root;
57 extraConfig = [ chloe_prod.apache.vhostConf ]; 57 extraConfig = [ chloe_prod.apache.vhostConf ];
58 }; 58 };
59 }) 59 })