diff options
Diffstat (limited to 'nixops/modules/websites/tools/tools/yourls.nix')
-rw-r--r-- | nixops/modules/websites/tools/tools/yourls.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixops/modules/websites/tools/tools/yourls.nix b/nixops/modules/websites/tools/tools/yourls.nix index 66dd2fd..b12edfa 100644 --- a/nixops/modules/websites/tools/tools/yourls.nix +++ b/nixops/modules/websites/tools/tools/yourls.nix | |||
@@ -52,13 +52,15 @@ let | |||
52 | )} | 52 | )} |
53 | ''; | 53 | ''; |
54 | }); | 54 | }); |
55 | apache = { | 55 | apache = rec { |
56 | user = "wwwrun"; | 56 | user = "wwwrun"; |
57 | group = "wwwrun"; | 57 | group = "wwwrun"; |
58 | modules = [ "proxy_fcgi" ]; | 58 | modules = [ "proxy_fcgi" ]; |
59 | webappName = "tools_yourls"; | ||
60 | root = "/run/current-system/webapps/${webappName}"; | ||
59 | vhostConf = '' | 61 | vhostConf = '' |
60 | Alias /url "${webRoot}" | 62 | Alias /url "${root}" |
61 | <Directory "${webRoot}"> | 63 | <Directory "${root}"> |
62 | <FilesMatch "\.php$"> | 64 | <FilesMatch "\.php$"> |
63 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | 65 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" |
64 | </FilesMatch> | 66 | </FilesMatch> |