X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fdefault.nix;h=3d43b1108fab5f7ce4a7b91fbffb97ec811ee4f5;hb=8a05c7fb2e7aad81ce4eb31b5173f4dabf353e31;hp=87fdd73fdbf6ea725f6dd1a27aa9d943a2b57d72;hpb=d2e703c560bc029c3d607058de2935bbf1cb0559;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/default.nix b/modules/private/websites/default.nix index 87fdd73..3d43b11 100644 --- a/modules/private/websites/default.nix +++ b/modules/private/websites/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: let www_root = "/run/current-system/webapps/_www"; theme_root = "/run/current-system/webapps/_theme"; @@ -87,9 +87,9 @@ in #openssl = self.openssl_1_1; php = php72; php72 = (super.php72.override { - mysql.connector-c = self.mariadb; - config.php.mysqlnd = false; + config.php.mysqlnd = true; config.php.mysqli = false; + config.php.mhash = true; # Is it needed? }).overrideAttrs(old: rec { # Didn't manage to build with mysqli + mysql_config connector configureFlags = old.configureFlags ++ [ @@ -114,7 +114,7 @@ in AuthLDAPURL ldap://ldap.immae.eu:389/dc=immae,dc=eu STARTTLS AuthLDAPBindDN cn=httpd,ou=services,dc=immae,dc=eu - AuthLDAPBindPassword "${myconfig.env.httpd.ldap.password}" + AuthLDAPBindPassword "${config.myEnv.httpd.ldap.password}" AuthType Basic AuthName "Authentification requise (Acces LDAP)" AuthBasicProvider ldap @@ -125,7 +125,7 @@ in system.activationScripts = { httpd = '' - install -d -m 0755 ${config.security.acme.directory}/acme-challenge + install -d -m 0755 /var/lib/acme/acme-challenges install -d -m 0750 -o wwwrun -g wwwrun /var/lib/php/sessions ''; }; @@ -140,9 +140,9 @@ in ; 30 days (minutes) session.cache_expire = 43200 ''; - extraConfig = '' - log_level = notice - ''; + settings = { + log_level = "notice"; + }; }; services.filesWatcher.httpdProd.paths = [ "/var/secrets/apache-ldap" ]; @@ -154,7 +154,7 @@ in adminAddr = "httpd@immae.eu"; httpdName = "Prod"; ips = - let ips = myconfig.env.servers.eldiron.ips.production; + let ips = config.myEnv.servers.eldiron.ips.production; in [ips.ip4] ++ (ips.ip6 or []); modules = makeModules; extraConfig = makeExtraConfig; @@ -171,7 +171,7 @@ in adminAddr = "httpd@immae.eu"; httpdName = "Inte"; ips = - let ips = myconfig.env.servers.eldiron.ips.integration; + let ips = config.myEnv.servers.eldiron.ips.integration; in [ips.ip4] ++ (ips.ip6 or []); modules = makeModules; extraConfig = makeExtraConfig; @@ -188,7 +188,7 @@ in adminAddr = "httpd@immae.eu"; httpdName = "Tools"; ips = - let ips = myconfig.env.servers.eldiron.ips.main; + let ips = config.myEnv.servers.eldiron.ips.main; in [ips.ip4] ++ (ips.ip6 or []); modules = makeModules; extraConfig = makeExtraConfig ++ @@ -224,8 +224,9 @@ in _theme = pkgs.webapps.apache-theme.theme; }; - aten.integration.enable = true; - aten.production.enable = true; + isabelle.aten_integration.enable = true; + isabelle.aten_production.enable = true; + isabelle.iridologie.enable = true; capitaines.production.enable = true; @@ -238,6 +239,7 @@ in denisejerome.production.enable = true; emilia.production.enable = true; + emilia.richie_production.enable = true; florian.app.enable = true; florian.integration.enable = true; @@ -254,14 +256,18 @@ in nassime.production.enable = true; + evariste.production.enable = true; naturaloutil.production.enable = true; telioTortay.production.enable = true; papa.surveillance.enable = true; + papa.maison_bbc.enable = true; piedsjaloux.integration.enable = true; piedsjaloux.production.enable = true; + syden.peertube.enable = true; + tools.cloud.enable = true; tools.dav.enable = true; tools.db.enable = true;