]>
Commit | Line | Data |
---|---|---|
f8026b6e IB |
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 | } |