X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Ftools%2Fdefault.nix;h=93d11222785fd860c64dcd7320d1221f35f7b6d8;hb=68c45ad53b34301c1a0c59352a839db13e1f2420;hp=cdfc7eb29e32befea94b8cfb715c3a2805467125;hpb=46c99b575ab45c79e195bc9e9ed75759e814aad1;p=perso%2FImmae%2FConfig%2FNix.git
diff --git a/modules/private/websites/tools/tools/default.nix b/modules/private/websites/tools/tools/default.nix
index cdfc7eb..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
@@ -167,8 +168,8 @@ in {
Options -Indexes
- Alias /BIP39 /var/lib/buildbot/outputs/bip39
-
+ Alias /BIP39 /var/lib/buildbot/outputs/immae/bip39
+
DirectoryIndex index.html
AllowOverride None
Require all granted
@@ -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;
};