mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
11 lines
244 B
Python
11 lines
244 B
Python
|
from flask import Flask
|
||
|
|
||
|
from configs import dify_config
|
||
|
|
||
|
|
||
|
def init_app(app: Flask):
|
||
|
if dify_config.RESPECT_XFORWARD_HEADERS_ENABLED:
|
||
|
from werkzeug.middleware.proxy_fix import ProxyFix
|
||
|
|
||
|
app.wsgi_app = ProxyFix(app.wsgi_app)
|