From f3ca662bf88213874d52929314f28ddcb6db9443 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 5 Aug 2023 20:16:23 +0200 Subject: GDPR "fix" --- container.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'container.scm') diff --git a/container.scm b/container.scm index 7af2a25..4efae03 100644 --- a/container.scm +++ b/container.scm @@ -227,7 +227,10 @@ (koszko-httpd-site-conf (name-and-aliases (list "hydrillabugs.koszko.org" "hachettebugs.koszko.org")) (body - `(,(httpd-tag 'Proxy '("*") + `(;; GDPR hack + ,(httpd-directive 'Header 'unset 'Set-Cookie) + + ,(httpd-tag 'Proxy '("*") (httpd-directive 'Redirect 'permanent "/projects/hachette" "/projects/haketilo") @@ -328,6 +331,11 @@ (name "proxy_http_module") (file (file-append httpd "/modules/mod_proxy_http.so"))))) +(define %headers-module + (httpd-module + (name "headers_module") + (file (file-append httpd "/modules/mod_headers.so")))) + ;; logio is needed for the '%O' log format directive (define %logio-module (httpd-module @@ -357,6 +365,7 @@ (modules `(,%cgid-module ,%wsgi-module ,@%proxy-http-modules + ,%headers-module ,%logio-module ,@%default-httpd-modules)) (extra-config -- cgit v1.2.3