diff options
Diffstat (limited to 'virtual/eldiron.nix')
-rw-r--r-- | virtual/eldiron.nix | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 38f753c..768de84 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix | |||
@@ -53,18 +53,7 @@ | |||
53 | log_level = notice | 53 | log_level = notice |
54 | ''; | 54 | ''; |
55 | poolConfigs = { | 55 | poolConfigs = { |
56 | adminer = '' | 56 | adminer = mypkgs.adminer.phpFpm.pool; |
57 | listen = /var/run/phpfpm/adminer.sock | ||
58 | user = wwwrun | ||
59 | group = wwwrun | ||
60 | listen.owner = wwwrun | ||
61 | listen.group = wwwrun | ||
62 | pm = ondemand | ||
63 | pm.max_children = 5 | ||
64 | pm.process_idle_timeout = 60 | ||
65 | ;php_admin_flag[log_errors] = on | ||
66 | php_admin_value[open_basedir] = "${mypkgs.adminer}:/tmp" | ||
67 | ''; | ||
68 | www = '' | 57 | www = '' |
69 | listen = /var/run/phpfpm/www.sock | 58 | listen = /var/run/phpfpm/www.sock |
70 | user = wwwrun | 59 | user = wwwrun |
@@ -106,15 +95,9 @@ | |||
106 | listen = [ { ip = "*"; port = 443; } ]; | 95 | listen = [ { ip = "*"; port = 443; } ]; |
107 | hostName = "db-1.immae.eu"; | 96 | hostName = "db-1.immae.eu"; |
108 | documentRoot = null; | 97 | documentRoot = null; |
109 | extraConfig = '' | 98 | extraConfig = builtins.concatStringsSep "\n" [ |
110 | Alias /adminer ${mypkgs.adminer} | 99 | mypkgs.adminer.apacheConf |
111 | <Directory ${mypkgs.adminer}> | 100 | ]; |
112 | DirectoryIndex = index.php | ||
113 | <FilesMatch "\.php$"> | ||
114 | SetHandler "proxy:unix:/var/run/phpfpm/adminer.sock|fcgi://localhost" | ||
115 | </FilesMatch> | ||
116 | </Directory> | ||
117 | ''; | ||
118 | }) | 101 | }) |
119 | { # Should go last, default fallback | 102 | { # Should go last, default fallback |
120 | listen = [ { ip = "*"; port = 80; } ]; | 103 | listen = [ { ip = "*"; port = 80; } ]; |
@@ -160,6 +143,7 @@ | |||
160 | # FIXME: backup | 143 | # FIXME: backup |
161 | # FIXME: restart after pam | 144 | # FIXME: restart after pam |
162 | # FIXME: pam access doesn’t work (because of php module) | 145 | # FIXME: pam access doesn’t work (because of php module) |
146 | # FIXME: ssl | ||
163 | services.mysql = rec { | 147 | services.mysql = rec { |
164 | enable = true; | 148 | enable = true; |
165 | package = pkgs.mariadb.overrideAttrs(old: rec { | 149 | package = pkgs.mariadb.overrideAttrs(old: rec { |
@@ -170,6 +154,7 @@ | |||
170 | 154 | ||
171 | # FIXME: initial sync | 155 | # FIXME: initial sync |
172 | # FIXME: backup | 156 | # FIXME: backup |
157 | # FIXME: ssl | ||
173 | services.postgresql = rec { | 158 | services.postgresql = rec { |
174 | enable = true; | 159 | enable = true; |
175 | package = pkgs.postgresql100.overrideAttrs(old: rec { | 160 | package = pkgs.postgresql100.overrideAttrs(old: rec { |