X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftellesflorian%2Ftellesflorian.nix;h=47142c8d46e33757252d975e639daef94368326e;hp=028a235adef9115392b801bcdfcbf979e481d3e8;hb=e5073addbe397afd596613af469f3308a07c1801;hpb=a556c4b01a536afd90042dad95e7cc09f37d4056 diff --git a/nixops/modules/websites/tellesflorian/tellesflorian.nix b/nixops/modules/websites/tellesflorian/tellesflorian.nix index 028a235..47142c8 100644 --- a/nixops/modules/websites/tellesflorian/tellesflorian.nix +++ b/nixops/modules/websites/tellesflorian/tellesflorian.nix @@ -47,10 +47,12 @@ let passwords = writeText "tellesflorian_passwords" '' invite:${config.invite_passwords} ''; - apache = { + apache = rec { user = "wwwrun"; group = "wwwrun"; modules = [ "proxy_fcgi" ]; + webappName = "florian_${environment}"; + root = "/run/current-system/webapps/${webappName}"; vhostConf = '' SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" @@ -68,7 +70,7 @@ let ErrorDocument 401 "" - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride None Require all granted @@ -109,7 +111,7 @@ let '' else '' - + Options Indexes FollowSymLinks MultiViews Includes AllowOverride All Require all granted