diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-15 16:55:49 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-07-15 16:55:49 +0200 |
commit | 68c45ad53b34301c1a0c59352a839db13e1f2420 (patch) | |
tree | 7a2c4ffcb6cc489ddd30aaaa23d242941cde24ed /modules/private/websites/tools/tools/default.nix | |
parent | 5868f9c64f0a2e9c03f6abee35ed0f0f09d30fe4 (diff) | |
download | Nix-68c45ad53b34301c1a0c59352a839db13e1f2420.tar.gz Nix-68c45ad53b34301c1a0c59352a839db13e1f2420.tar.zst Nix-68c45ad53b34301c1a0c59352a839db13e1f2420.zip |
Add CSP reports
Diffstat (limited to 'modules/private/websites/tools/tools/default.nix')
-rw-r--r-- | modules/private/websites/tools/tools/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
112 | '' | 112 | '' |
113 | Timeout 600 | 113 | Timeout 600 |
114 | ProxyTimeout 600 | 114 | ProxyTimeout 600 |
115 | Header always set Content-Security-Policy-Report-Only "${config.myEnv.tools.csp_reports.policies.inline}" | ||
115 | <Directory "/var/lib/ftp/devtools.immae.eu"> | 116 | <Directory "/var/lib/ftp/devtools.immae.eu"> |
116 | DirectoryIndex index.php index.htm index.html | 117 | DirectoryIndex index.php index.htm index.html |
117 | AllowOverride all | 118 | AllowOverride all |
@@ -304,6 +305,8 @@ in { | |||
304 | }; | 305 | }; |
305 | phpEnv = { | 306 | phpEnv = { |
306 | CONTACT_EMAIL = config.myEnv.tools.contact; | 307 | CONTACT_EMAIL = config.myEnv.tools.contact; |
308 | CSP_REPORT_URI = with config.myEnv.tools.csp_reports.postgresql; | ||
309 | "\"host=${socket} dbname=${database} user=${user} password=${password}\""; | ||
307 | }; | 310 | }; |
308 | phpPackage = pkgs.php72; | 311 | phpPackage = pkgs.php72; |
309 | }; | 312 | }; |