diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:50:08 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-16 14:50:08 +0100 |
commit | 7da3ceece7fe6c49046e97f37fc353db9b8a981c (patch) | |
tree | 623849d979508b007b1b6e4e42976b64e30b2cf1 /nixops/modules/websites/commons | |
parent | e5073addbe397afd596613af469f3308a07c1801 (diff) | |
download | Nix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.tar.gz Nix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.tar.zst Nix-7da3ceece7fe6c49046e97f37fc353db9b8a981c.zip |
Move production websites to use stable web directories
Diffstat (limited to 'nixops/modules/websites/commons')
-rw-r--r-- | nixops/modules/websites/commons/adminer.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nixops/modules/websites/commons/adminer.nix b/nixops/modules/websites/commons/adminer.nix index 891046f..9c4e132 100644 --- a/nixops/modules/websites/commons/adminer.nix +++ b/nixops/modules/websites/commons/adminer.nix | |||
@@ -32,13 +32,15 @@ let | |||
32 | php_admin_value[session.save_path] = "/var/lib/php/sessions/adminer" | 32 | php_admin_value[session.save_path] = "/var/lib/php/sessions/adminer" |
33 | ''; | 33 | ''; |
34 | }; | 34 | }; |
35 | apache = { | 35 | apache = rec { |
36 | user = "wwwrun"; | 36 | user = "wwwrun"; |
37 | group = "wwwrun"; | 37 | group = "wwwrun"; |
38 | modules = [ "proxy_fcgi" ]; | 38 | modules = [ "proxy_fcgi" ]; |
39 | webappName = "_adminer"; | ||
40 | root = "/run/current-system/webapps/${webappName}"; | ||
39 | vhostConf = '' | 41 | vhostConf = '' |
40 | Alias /adminer ${webRoot} | 42 | Alias /adminer ${root} |
41 | <Directory ${webRoot}> | 43 | <Directory ${root}> |
42 | DirectoryIndex index.php | 44 | DirectoryIndex index.php |
43 | Require all granted | 45 | Require all granted |
44 | <FilesMatch "\.php$"> | 46 | <FilesMatch "\.php$"> |