changeset 339:c90dc847246b

Add an IPv6-only header My ISP now supports IPv6, so I want something special for it!
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 May 2020 14:58:33 +0100
parents 7e3c977e970a
children b2acbea872e7
files modules/website/files/zzz-0-custom.conf
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/website/files/zzz-0-custom.conf	Sat May 16 14:46:59 2020 +0100
+++ b/modules/website/files/zzz-0-custom.conf	Sat May 16 14:58:33 2020 +0100
@@ -92,3 +92,8 @@
 Header always set Referrer-Policy "no-referrer-when-downgrade"
 # FIXME: This shouldn't be a fixed URL!
 Header always set Expect-CT "max-age=0, report-uri='https://ibboard.report-uri.io/r/default/ct/reportOnly'"
+
+# We can't just use IPV6 because we're proxying, so look for a colon to tell IPv4 from v6
+<If "%{REMOTE_ADDR} =~ /:/">
+	Header always set X-The-Future "Welcome to the future with IPv6!"
+</If>
\ No newline at end of file