diff options
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 |