X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Ftools%2Fdefault.nix;h=93d11222785fd860c64dcd7320d1221f35f7b6d8;hp=7a9a125715341923868830f54ede5a1ed6a9d66e;hb=68c45ad53b34301c1a0c59352a839db13e1f2420;hpb=5868f9c64f0a2e9c03f6abee35ed0f0f09d30fe4 diff --git a/modules/private/websites/tools/tools/default.nix b/modules/private/websites/tools/tools/default.nix index 7a9a125..93d1122 100644 --- a/modules/private/websites/tools/tools/default.nix +++ b/modules/private/websites/tools/tools/default.nix @@ -112,6 +112,7 @@ in { '' Timeout 600 ProxyTimeout 600 + Header always set Content-Security-Policy-Report-Only "${config.myEnv.tools.csp_reports.policies.inline}" DirectoryIndex index.php index.htm index.html AllowOverride all @@ -304,6 +305,8 @@ in { }; phpEnv = { CONTACT_EMAIL = config.myEnv.tools.contact; + CSP_REPORT_URI = with config.myEnv.tools.csp_reports.postgresql; + "\"host=${socket} dbname=${database} user=${user} password=${password}\""; }; phpPackage = pkgs.php72; };