feat: add support for X-Forwarded-Port in ProxyFix middleware (#13102)
This commit is contained in:
parent
0957119550
commit
abec23118d
3 changed files with 4 additions and 3 deletions
|
|
@ -6,4 +6,4 @@ def init_app(app: DifyApp):
|
|||
if dify_config.RESPECT_XFORWARD_HEADERS_ENABLED:
|
||||
from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app) # type: ignore
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, x_port=1) # type: ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue