diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:09:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:09:27 +0100 |
commit | e5073addbe397afd596613af469f3308a07c1801 (patch) | |
tree | 943148dbdbfb9aeeccf9c5a5d945a7398205f03d /nixops/modules/websites/ludivine/ludivinecassal.nix | |
parent | a556c4b01a536afd90042dad95e7cc09f37d4056 (diff) | |
download | Nix-e5073addbe397afd596613af469f3308a07c1801.tar.gz Nix-e5073addbe397afd596613af469f3308a07c1801.tar.zst Nix-e5073addbe397afd596613af469f3308a07c1801.zip |
Move integration websites to use stable web directory
This permits to avoir having to restart httpd at each application
deployment
Diffstat (limited to 'nixops/modules/websites/ludivine/ludivinecassal.nix')
-rw-r--r-- | nixops/modules/websites/ludivine/ludivinecassal.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixops/modules/websites/ludivine/ludivinecassal.nix b/nixops/modules/websites/ludivine/ludivinecassal.nix index 4ce06b2..02614a5 100644 --- a/nixops/modules/websites/ludivine/ludivinecassal.nix +++ b/nixops/modules/websites/ludivine/ludivinecassal.nix | |||
@@ -60,10 +60,12 @@ let | |||
60 | pm.max_spare_servers = 3 | 60 | pm.max_spare_servers = 3 |
61 | ''}''; | 61 | ''}''; |
62 | }; | 62 | }; |
63 | apache = { | 63 | apache = rec { |
64 | user = "wwwrun"; | 64 | user = "wwwrun"; |
65 | group = "wwwrun"; | 65 | group = "wwwrun"; |
66 | modules = [ "proxy_fcgi" ]; | 66 | modules = [ "proxy_fcgi" ]; |
67 | webappName = "ludivine_${environment}"; | ||
68 | root = "/run/current-system/webapps/${webappName}"; | ||
67 | vhostConf = '' | 69 | vhostConf = '' |
68 | <FilesMatch "\.php$"> | 70 | <FilesMatch "\.php$"> |
69 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | 71 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" |
@@ -76,7 +78,7 @@ let | |||
76 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://ludivinecassal.com\"></html>" | 78 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://ludivinecassal.com\"></html>" |
77 | </Location> | 79 | </Location> |
78 | 80 | ||
79 | <Directory ${webRoot}> | 81 | <Directory ${root}> |
80 | Options Indexes FollowSymLinks MultiViews Includes | 82 | Options Indexes FollowSymLinks MultiViews Includes |
81 | AllowOverride None | 83 | AllowOverride None |
82 | Require all granted | 84 | Require all granted |