diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-22 20:01:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-22 20:01:33 +0200 |
commit | 4288c2f2431fb782b0d512b1b3749187f2374b6a (patch) | |
tree | aaf812414f91d6b695a7507265e7572de8dc477c /nixops/modules/websites/commons | |
parent | f40f5b235b890f46770a22f005f8a0f664cf0562 (diff) | |
download | Nix-4288c2f2431fb782b0d512b1b3749187f2374b6a.tar.gz Nix-4288c2f2431fb782b0d512b1b3749187f2374b6a.tar.zst Nix-4288c2f2431fb782b0d512b1b3749187f2374b6a.zip |
Move websites/tools to modules
Diffstat (limited to 'nixops/modules/websites/commons')
-rw-r--r-- | nixops/modules/websites/commons/adminer.nix | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/nixops/modules/websites/commons/adminer.nix b/nixops/modules/websites/commons/adminer.nix deleted file mode 100644 index e911347..0000000 --- a/nixops/modules/websites/commons/adminer.nix +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | { stdenv, fetchurl, webapps }: | ||
2 | rec { | ||
3 | webRoot = webapps.adminer; | ||
4 | phpFpm = rec { | ||
5 | socket = "/var/run/phpfpm/adminer.sock"; | ||
6 | pool = '' | ||
7 | listen = ${socket} | ||
8 | user = ${apache.user} | ||
9 | group = ${apache.group} | ||
10 | listen.owner = ${apache.user} | ||
11 | listen.group = ${apache.group} | ||
12 | pm = ondemand | ||
13 | pm.max_children = 5 | ||
14 | pm.process_idle_timeout = 60 | ||
15 | ;php_admin_flag[log_errors] = on | ||
16 | ; Needed to avoid clashes in browser cookies (same domain) | ||
17 | php_value[session.name] = AdminerPHPSESSID | ||
18 | php_admin_value[open_basedir] = "${webRoot}:/tmp:/var/lib/php/sessions/adminer:/var/lib/php/tmp/adminer" | ||
19 | php_admin_value[session.save_path] = "/var/lib/php/sessions/adminer" | ||
20 | php_admin_value[upload_tmp_dir] = "/var/lib/php/tmp/adminer" | ||
21 | ''; | ||
22 | }; | ||
23 | apache = rec { | ||
24 | user = "wwwrun"; | ||
25 | group = "wwwrun"; | ||
26 | modules = [ "proxy_fcgi" ]; | ||
27 | webappName = "_adminer"; | ||
28 | root = "/run/current-system/webapps/${webappName}"; | ||
29 | vhostConf = '' | ||
30 | Alias /adminer ${root} | ||
31 | <Directory ${root}> | ||
32 | DirectoryIndex index.php | ||
33 | Require all granted | ||
34 | <FilesMatch "\.php$"> | ||
35 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | ||
36 | </FilesMatch> | ||
37 | </Directory> | ||
38 | ''; | ||
39 | }; | ||
40 | } | ||