aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2021-05-01 19:05:47 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-05-01 19:05:47 +0200
commita0e80453478719b9b13240f0e045d4d0419b8109 (patch)
treed5f4d2eda2702647c683e186fa73aaa01ee9f3ee /modules/private/websites
parent87949cb97f78dad19743352a584af432a4800e03 (diff)
downloadNix-a0e80453478719b9b13240f0e045d4d0419b8109.tar.gz
Nix-a0e80453478719b9b13240f0e045d4d0419b8109.tar.zst
Nix-a0e80453478719b9b13240f0e045d4d0419b8109.zip
Small adjustments for naemon and web server
Diffstat (limited to 'modules/private/websites')
-rw-r--r--modules/private/websites/tools/tools/default.nix1
-rw-r--r--modules/private/websites/tools/tools/dmarc_reports/api.php2
2 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 7903ca5..6464206 100644
--- a/modules/private/websites/tools/tools/default.nix
+++ b/modules/private/websites/tools/tools/default.nix
@@ -114,6 +114,7 @@ in {
114 root = "/var/lib/ftp/devtools.immae.eu"; 114 root = "/var/lib/ftp/devtools.immae.eu";
115 extraConfig = [ 115 extraConfig = [
116 '' 116 ''
117 Use Apaxy "/var/lib/ftp/devtools.immae.eu" "title"
117 Timeout 600 118 Timeout 600
118 ProxyTimeout 600 119 ProxyTimeout 600
119 Header always set Content-Security-Policy-Report-Only "${config.myEnv.tools.csp_reports.policies.inline}" 120 Header always set Content-Security-Policy-Report-Only "${config.myEnv.tools.csp_reports.policies.inline}"
diff --git a/modules/private/websites/tools/tools/dmarc_reports/api.php b/modules/private/websites/tools/tools/dmarc_reports/api.php
index 5d4657e..850f9ce 100644
--- a/modules/private/websites/tools/tools/dmarc_reports/api.php
+++ b/modules/private/websites/tools/tools/dmarc_reports/api.php
@@ -116,5 +116,7 @@ if (!isset($_GET['serial'])) {
116 } 116 }
117} 117}
118 118
119header("Content-Type: application/json");
120
119echo json_encode($response, JSON_PRETTY_PRINT); 121echo json_encode($response, JSON_PRETTY_PRINT);
120?> 122?>