X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fpiedsjaloux%2Fintegration.nix;fp=modules%2Fprivate%2Fwebsites%2Fpiedsjaloux%2Fintegration.nix;h=64d577ec98fbbd60312317a96c639cc5fd871cc8;hp=437b127133235e6b92c5f77c862cb82a15a2f3d8;hb=41cce84a02652e22ad967c9f31669092eb3e7f0e;hpb=750fe5a43b957b91a26069cf8a4fe19fc7b2633c diff --git a/modules/private/websites/piedsjaloux/integration.nix b/modules/private/websites/piedsjaloux/integration.nix index 437b127..64d577e 100644 --- a/modules/private/websites/piedsjaloux/integration.nix +++ b/modules/private/websites/piedsjaloux/integration.nix @@ -1,12 +1,7 @@ { lib, pkgs, config, ... }: let secrets = config.myEnv.websites.piedsjaloux.integration; - app = pkgs.callPackage ./app { - composerEnv = pkgs.composerEnv.override { php = pkgs.php72; }; - environment = secrets.environment; - varDir = "/var/lib/piedsjaloux_integration"; - secretsPath = config.secrets.fullPaths."websites/piedsjaloux/integration"; - }; + webRoot = "/var/lib/ftp/immae/piedsjaloux/web"; cfg = config.myServices.websites.piedsjaloux.integration; pcfg = config.services.phpApplication; texlive = pkgs.texlive.combine { inherit (pkgs.texlive) attachfile preprint scheme-small; }; @@ -19,14 +14,15 @@ in { websiteEnv = "integration"; httpdUser = config.services.httpd.Inte.user; httpdGroup = config.services.httpd.Inte.group; - inherit (app) webRoot varDir; + inherit webRoot; + varDir = "/var/lib/ftp/immae/piedsjaloux_var"; varDirPaths = { "tmp" = "0700"; }; - inherit app; + app = "/var/lib/ftp/immae/piedsjaloux"; serviceDeps = [ "mysql.service" ]; preStartActions = [ - "./bin/console --env=${app.environment} cache:clear --no-warmup" + "./bin/console --env=dev cache:clear --no-warmup" ]; phpOpenbasedir = [ "/tmp" ]; phpPool = { @@ -47,7 +43,7 @@ in { SYMFONY_DEBUG_MODE = "\"yes\""; }; phpWatchFiles = [ - app.secretsPath + config.secrets.fullPaths."websites/piedsjaloux/integration" ]; phpPackage = pkgs.php72; }; @@ -80,7 +76,7 @@ in { certName = "integration"; addToCerts = true; hosts = [ "piedsjaloux.immae.eu" ]; - root = app.webRoot; + root = webRoot; extraConfig = [ '' @@ -93,7 +89,7 @@ in { ErrorDocument 401 "" - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride None Require all granted