diff options
author | Simon McVittie <smcv@debian.org> | 2014-10-05 23:06:48 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-10-05 23:49:37 +0100 |
commit | 3b8da667cc1514a9589190b614307c0a76af532a (patch) | |
tree | 48d4d35e0c6cd9f68f0e2cace61f1ad79e8473ea /IkiWiki.pm | |
parent | d712389ae3e8351c1416aa81d4b85586cf98f002 (diff) | |
download | ikiwiki-3b8da667cc1514a9589190b614307c0a76af532a.tar ikiwiki-3b8da667cc1514a9589190b614307c0a76af532a.tar.gz |
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.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 8 |
1 files changed, 8 insertions, 0 deletions
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 => '', |