From 5400b9b6f65451d41a9106fae6fc00f97d83f4ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 25 Mar 2020 11:57:48 +0100 Subject: Upgrade nixos --- modules/private/websites/commons/adminer.nix | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'modules/private/websites/commons') diff --git a/modules/private/websites/commons/adminer.nix b/modules/private/websites/commons/adminer.nix index d591c90..1803468 100644 --- a/modules/private/websites/commons/adminer.nix +++ b/modules/private/websites/commons/adminer.nix @@ -1,24 +1,5 @@ -{}: -rec { - phpFpm = { - socket = "/var/run/phpfpm/adminer.sock"; - }; - apache = rec { - modules = [ "proxy_fcgi" ]; - webappName = "_adminer"; - root = "/run/current-system/webapps/${webappName}"; - vhostConf = '' - Alias /adminer ${root} - - DirectoryIndex index.php - - SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" - - - Use LDAPConnect - Require ldap-group cn=users,cn=mysql,cn=pam,ou=services,dc=immae,dc=eu - Require ldap-group cn=users,cn=postgresql,cn=pam,ou=services,dc=immae,dc=eu - - ''; - }; +{ config, callPackage }: +callPackage ../tools/tools/adminer.nix { + adminer = null; + forcePhpSocket = config.services.phpfpm.pools.adminer.socket; } -- cgit v1.2.3