X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fludivinecassal%2Fintegration.nix;h=d304fdf9e76b390cdc76561b0535079b22a6103c;hb=5400b9b6f65451d41a9106fae6fc00f97d83f4ef;hp=5d9afc138990f52fda48ab2019156f85c5133f80;hpb=d2e703c560bc029c3d607058de2935bbf1cb0559;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/ludivinecassal/integration.nix b/modules/private/websites/ludivinecassal/integration.nix index 5d9afc1..d304fdf 100644 --- a/modules/private/websites/ludivinecassal/integration.nix +++ b/modules/private/websites/ludivinecassal/integration.nix @@ -1,6 +1,6 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: let - secrets = myconfig.env.websites.ludivinecassal.integration; + secrets = config.myEnv.websites.ludivinecassal.integration; app = pkgs.webapps.ludivinecassal.override { environment = secrets.environment; }; cfg = config.myServices.websites.ludivinecassal.integration; pcfg = config.services.phpApplication; @@ -23,15 +23,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}-ludivinecassal" ]; @@ -48,7 +50,7 @@ in { parameters: database_host: ${secrets.mysql.host} database_port: ${secrets.mysql.port} - database_name: ${secrets.mysql.name} + database_name: ${secrets.mysql.database} database_user: ${secrets.mysql.user} database_password: ${secrets.mysql.password} database_server_version: ${pkgs.mariadb.mysqlVersion} @@ -66,7 +68,7 @@ in { ldap_base_dn: 'dc=immae,dc=eu' ldap_search_dn: '${secrets.ldap.dn}' ldap_search_password: '${secrets.ldap.password}' - ldap_search_filter: '${secrets.ldap.search}' + ldap_search_filter: '${secrets.ldap.filter}' leapt_im: binary_path: ${pkgs.imagemagick}/bin assetic: @@ -77,7 +79,7 @@ in { ]; services.websites.env.integration.vhostConfs.ludivinecassal_dev = { - certName = "eldiron"; + certName = "integration"; addToCerts = true; hosts = [ "ludivine.immae.eu" ]; root = pcfg.webappDirs.ludivinecassal_dev;