comparison development.ini @ 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 070b8c39736f
children
comparison
equal deleted inserted replaced
8889:de59ad8185e1 8890:d483e2df546f
79 79
80 ## middleware for hosting the WSGI application under a URL prefix 80 ## middleware for hosting the WSGI application under a URL prefix
81 #[filter:proxy-prefix] 81 #[filter:proxy-prefix]
82 #use = egg:PasteDeploy#prefix 82 #use = egg:PasteDeploy#prefix
83 #prefix = /<your-prefix> 83 #prefix = /<your-prefix>
84 #translate_forwarded_server = False
84 85
85 [app:main] 86 [app:main]
86 use = egg:kallithea 87 use = egg:kallithea
87 ## enable proxy prefix middleware 88 ## enable proxy prefix middleware
88 #filter-with = proxy-prefix 89 #filter-with = proxy-prefix