# HG changeset patch # User Mads Kiilerich # Date 1622069315 -7200 # Node ID d483e2df546f9af5b7e61bc8031c6109ef21d2ec # Parent de59ad8185e1d811345450b117ed0570889ea7ff ini: set translate_forwarded_server = False when using paste prefix middleware Paste Deploy PrefixMiddleware will be default trust HTTP headers that a proxy server might have set. That can be a problem if there is no proxy server or if the proxy just pass these headers through. Change the configuration example to disable this translation. diff -r de59ad8185e1 -r d483e2df546f development.ini --- a/development.ini Thu May 27 00:54:01 2021 +0200 +++ b/development.ini Thu May 27 00:48:35 2021 +0200 @@ -81,6 +81,7 @@ #[filter:proxy-prefix] #use = egg:PasteDeploy#prefix #prefix = / +#translate_forwarded_server = False [app:main] use = egg:kallithea diff -r de59ad8185e1 -r d483e2df546f kallithea/templates/ini/template.ini.mako --- a/kallithea/templates/ini/template.ini.mako Thu May 27 00:54:01 2021 +0200 +++ b/kallithea/templates/ini/template.ini.mako Thu May 27 00:48:35 2021 +0200 @@ -145,6 +145,7 @@ #[filter:proxy-prefix] #use = egg:PasteDeploy#prefix #prefix = / +#translate_forwarded_server = False [app:main] use = egg:kallithea