X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Fludivine%2Fludivinecassal.nix;h=114c4ac2509d0eb7679ab3b07f7e2f4051dd5154;hb=3c8d7f8706433ce0f995f3bf37fdfd348fb9e173;hp=e17a64eed0dbdfa09f936e2f04f1a3831155a090;hpb=7ebcaad53a3261d8a4aefd8a64c5c7d9d8ac2fa0;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/ludivine/ludivinecassal.nix b/nixops/modules/websites/ludivine/ludivinecassal.nix index e17a64e..114c4ac 100644 --- a/nixops/modules/websites/ludivine/ludivinecassal.nix +++ b/nixops/modules/websites/ludivine/ludivinecassal.nix @@ -14,7 +14,7 @@ let database_password: ${config.mysql.password} database_server_version: ${pkgs.mariadb.mysqlVersion} mailer_transport: smtp - mailer_host: mail.immae.eu + mailer_host: 127.0.0.1 mailer_user: null mailer_password: null secret: ${config.secret} @@ -60,10 +60,12 @@ let pm.max_spare_servers = 3 ''}''; }; - apache = { + apache = rec { user = "wwwrun"; group = "wwwrun"; modules = [ "proxy_fcgi" ]; + webappName = "ludivine_${environment}"; + root = "/run/current-system/webapps/${webappName}"; vhostConf = '' SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" @@ -76,7 +78,7 @@ let ErrorDocument 401 "" - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride None Require all granted @@ -119,7 +121,7 @@ let '' else '' Use Stats ludivinecassal.com - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride All Require all granted @@ -156,7 +158,7 @@ let # bug in leapt.im (searches for data/../miniatures) postInstall = '' rm -rf var/{logs,cache,data,miniatures,tmp} - ln -sf ../../../../../../../${varDir}/{logs,cache,data,miniatures,tmp} var/ + ln -sf ${varDir}/{logs,cache,data,miniatures,tmp} var/ ''; buildInputs = [ sass ]; });