X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Ftools%2Frompr.nix;h=baee2eb683068e021f7ca83fc3230a4c6c2c28c7;hb=a95ab089420d6edf24f22500dabf7876d329dc91;hp=98c48a7fe487159aea122feca149cbe3f43a78e4;hpb=7da3ceece7fe6c49046e97f37fc353db9b8a981c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/tools/rompr.nix b/nixops/modules/websites/tools/tools/rompr.nix index 98c48a7..baee2eb 100644 --- a/nixops/modules/websites/tools/tools/rompr.nix +++ b/nixops/modules/websites/tools/tools/rompr.nix @@ -14,14 +14,16 @@ let ln -sf ../../../../../../${varDir}/albumart $out/albumart ''; }); - apache = { + apache = rec { user = "wwwrun"; group = "wwwrun"; modules = [ "headers" "mime" "proxy_fcgi" ]; + webappName = "tools_rompr"; + root = "/run/current-system/webapps/${webappName}"; vhostConf = '' - Alias /rompr ${webRoot} + Alias /rompr ${root} - + Options Indexes FollowSymLinks DirectoryIndex index.php AllowOverride all @@ -36,12 +38,12 @@ let - + Header Set Cache-Control "max-age=0, no-store" Header Set Cache-Control "no-cache, must-revalidate" - + Header Set Cache-Control "max-age=0, no-store" Header Set Cache-Control "no-cache, must-revalidate"