diff options
Diffstat (limited to 'nixops/modules/websites/connexionswing/connexionswing.nix')
-rw-r--r-- | nixops/modules/websites/connexionswing/connexionswing.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixops/modules/websites/connexionswing/connexionswing.nix b/nixops/modules/websites/connexionswing/connexionswing.nix index 307def0..dff563f 100644 --- a/nixops/modules/websites/connexionswing/connexionswing.nix +++ b/nixops/modules/websites/connexionswing/connexionswing.nix | |||
@@ -56,10 +56,12 @@ let | |||
56 | pm.max_spare_servers = 3 | 56 | pm.max_spare_servers = 3 |
57 | ''}''; | 57 | ''}''; |
58 | }; | 58 | }; |
59 | apache = { | 59 | apache = rec { |
60 | user = "wwwrun"; | 60 | user = "wwwrun"; |
61 | group = "wwwrun"; | 61 | group = "wwwrun"; |
62 | modules = [ "proxy_fcgi" ]; | 62 | modules = [ "proxy_fcgi" ]; |
63 | webappName = "connexionswing_${environment}"; | ||
64 | root = "/run/current-system/webapps/${webappName}"; | ||
63 | vhostConf = '' | 65 | vhostConf = '' |
64 | <FilesMatch "\.php$"> | 66 | <FilesMatch "\.php$"> |
65 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | 67 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" |
@@ -84,7 +86,7 @@ let | |||
84 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://connexionswing.com\"></html>" | 86 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://connexionswing.com\"></html>" |
85 | </Location> | 87 | </Location> |
86 | 88 | ||
87 | <Directory ${webRoot}> | 89 | <Directory ${root}> |
88 | Options Indexes FollowSymLinks MultiViews Includes | 90 | Options Indexes FollowSymLinks MultiViews Includes |
89 | AllowOverride None | 91 | AllowOverride None |
90 | Require all granted | 92 | Require all granted |