diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-05-01 19:05:47 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-05-01 19:05:47 +0200 |
commit | a0e80453478719b9b13240f0e045d4d0419b8109 (patch) | |
tree | d5f4d2eda2702647c683e186fa73aaa01ee9f3ee /modules/private/websites | |
parent | 87949cb97f78dad19743352a584af432a4800e03 (diff) | |
download | Nix-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.nix | 1 | ||||
-rw-r--r-- | modules/private/websites/tools/tools/dmarc_reports/api.php | 2 |
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 | ||
119 | header("Content-Type: application/json"); | ||
120 | |||
119 | echo json_encode($response, JSON_PRETTY_PRINT); | 121 | echo json_encode($response, JSON_PRETTY_PRINT); |
120 | ?> | 122 | ?> |