Mercurial > kallithea
changeset 8890:d483e2df546f
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 27 May 2021 00:48:35 +0200 |
parents | de59ad8185e1 |
children | 60612e605e2d |
files | development.ini kallithea/templates/ini/template.ini.mako |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 = /<your-prefix> +#translate_forwarded_server = False [app:main] use = egg:kallithea
--- 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 = /<your-prefix> +#translate_forwarded_server = False [app:main] use = egg:kallithea