diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-18 10:49:00 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-18 10:49:00 +0200 |
commit | f8026b6e4c869aa108f6361c8ccd50890657994d (patch) | |
tree | 57cb311e520933bd2ab6ccbae05f2913799eb49e /modules/private/websites/commons | |
parent | 4aac110f17f0528d90510eec00c9a8df60bcf04f (diff) | |
download | Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.tar.gz Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.tar.zst Nix-f8026b6e4c869aa108f6361c8ccd50890657994d.zip |
Move personal websites to modules
Diffstat (limited to 'modules/private/websites/commons')
-rw-r--r-- | modules/private/websites/commons/adminer.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/private/websites/commons/adminer.nix b/modules/private/websites/commons/adminer.nix new file mode 100644 index 0000000..98ab461 --- /dev/null +++ b/modules/private/websites/commons/adminer.nix | |||
@@ -0,0 +1,21 @@ | |||
1 | {}: | ||
2 | rec { | ||
3 | phpFpm = { | ||
4 | socket = "/var/run/phpfpm/adminer.sock"; | ||
5 | }; | ||
6 | apache = rec { | ||
7 | modules = [ "proxy_fcgi" ]; | ||
8 | webappName = "_adminer"; | ||
9 | root = "/run/current-system/webapps/${webappName}"; | ||
10 | vhostConf = '' | ||
11 | Alias /adminer ${root} | ||
12 | <Directory ${root}> | ||
13 | DirectoryIndex index.php | ||
14 | Require all granted | ||
15 | <FilesMatch "\.php$"> | ||
16 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | ||
17 | </FilesMatch> | ||
18 | </Directory> | ||
19 | ''; | ||
20 | }; | ||
21 | } | ||