From 3b8da667cc1514a9589190b614307c0a76af532a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sun, 5 Oct 2014 23:06:48 +0100 Subject: Add reverse_proxy option which hard-codes cgiurl in CGI output This solves several people's issues with the CGI trying to be too clever when IkiWiki is placed behind a reverse-proxy. --- IkiWiki.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'IkiWiki.pm') diff --git a/IkiWiki.pm b/IkiWiki.pm index 38b91ae1d..570c185ad 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -108,6 +108,14 @@ sub getsetup () { safe => 1, rebuild => 1, }, + reverse_proxy => { + type => "boolean", + default => 0, + description => "do not adjust cgiurl if CGI is accessed via different URL", + advanced => 0, + safe => 1, + rebuild => 0, # only affects CGI requests + }, cgi_wrapper => { type => "string", default => '', -- cgit v1.2.3