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/florian/app.nix | 24 +++++++++++++----------- modules/private/websites/florian/integration.nix | 6 +++--- modules/private/websites/florian/production.nix | 6 +++--- 3 files changed, 19 insertions(+), 17 deletions(-) (limited to 'modules/private/websites/florian') diff --git a/modules/private/websites/florian/app.nix b/modules/private/websites/florian/app.nix index e262c59..c65c26f 100644 --- a/modules/private/websites/florian/app.nix +++ b/modules/private/websites/florian/app.nix @@ -1,6 +1,6 @@ { lib, pkgs, config, ... }: let - adminer = pkgs.callPackage ../commons/adminer.nix {}; + adminer = pkgs.callPackage ../commons/adminer.nix { inherit config; }; secrets = config.myEnv.websites.tellesflorian.integration; app = pkgs.webapps.tellesflorian.override { environment = secrets.environment; }; cfg = config.myServices.websites.florian.app; @@ -24,15 +24,17 @@ in { "./bin/console --env=${app.environment} cache:clear --no-warmup" ]; phpOpenbasedir = [ "/tmp" ]; - phpPool = '' - php_admin_value[upload_max_filesize] = 20M - php_admin_value[post_max_size] = 20M - ;php_admin_flag[log_errors] = on - pm = ondemand - pm.max_children = 5 - pm.process_idle_timeout = 60 - env[SYMFONY_DEBUG_MODE] = "yes" - ''; + phpPool = { + "php_admin_value[upload_max_filesize]" = "20M"; + "php_admin_value[post_max_size]" = "20M"; + #"php_admin_flag[log_errors]" = "on"; + "pm" = "ondemand"; + "pm.max_children" = "5"; + "pm.process_idle_timeout" = "60"; + }; + phpEnv = { + SYMFONY_DEBUG_MODE = "yes"; + }; phpWatchFiles = [ config.secrets.fullPaths."webapps/${app.environment}-tellesflorian" ]; @@ -134,7 +136,7 @@ in { '' - adminer.apache.vhostConf + (adminer.apache.vhostConf null) ]; }; }; diff --git a/modules/private/websites/florian/integration.nix b/modules/private/websites/florian/integration.nix index 57c4006..4ee160a 100644 --- a/modules/private/websites/florian/integration.nix +++ b/modules/private/websites/florian/integration.nix @@ -1,6 +1,6 @@ { lib, pkgs, config, ... }: let - adminer = pkgs.callPackage ../commons/adminer.nix {}; + adminer = pkgs.callPackage ../commons/adminer.nix { inherit config; }; cfg = config.myServices.websites.florian.integration; varDir = "/var/lib/ftp/florian"; env = config.myEnv.websites.florian; @@ -8,7 +8,7 @@ in { options.myServices.websites.florian.integration.enable = lib.mkEnableOption "enable Florian's website integration"; config = lib.mkIf cfg.enable { - security.acme2.certs."ftp".extraDomains."florian.immae.eu" = null; + security.acme.certs."ftp".extraDomains."florian.immae.eu" = null; services.websites.env.integration.modules = adminer.apache.modules; services.websites.env.integration.vhostConfs.florian = { @@ -17,7 +17,7 @@ in { hosts = [ "florian.immae.eu" ]; root = "${varDir}/florian.immae.eu"; extraConfig = [ - adminer.apache.vhostConf + (adminer.apache.vhostConf null) '' ServerAdmin ${env.server_admin} diff --git a/modules/private/websites/florian/production.nix b/modules/private/websites/florian/production.nix index 1abc715..16c6022 100644 --- a/modules/private/websites/florian/production.nix +++ b/modules/private/websites/florian/production.nix @@ -1,6 +1,6 @@ { lib, pkgs, config, ... }: let - adminer = pkgs.callPackage ../commons/adminer.nix {}; + adminer = pkgs.callPackage ../commons/adminer.nix { inherit config; }; cfg = config.myServices.websites.florian.production; varDir = "/var/lib/ftp/florian"; env = config.myEnv.websites.florian; @@ -8,7 +8,7 @@ in { options.myServices.websites.florian.production.enable = lib.mkEnableOption "enable Florian's website production"; config = lib.mkIf cfg.enable { - security.acme2.certs."ftp".extraDomains."tellesflorian.com" = null; + security.acme.certs."ftp".extraDomains."tellesflorian.com" = null; services.websites.env.production.modules = adminer.apache.modules; services.websites.env.production.vhostConfs.florian = { @@ -17,7 +17,7 @@ in { hosts = [ "tellesflorian.com" "www.tellesflorian.com" ]; root = "${varDir}/tellesflorian.com"; extraConfig = [ - adminer.apache.vhostConf + (adminer.apache.vhostConf null) '' ServerAdmin ${env.server_admin} -- cgit v1.2.3