Skip to content

Commit 212a963

Browse files
committed
fix: 修复waitress 3.0.0版本获取代理IP异常的问题
1 parent 662bef9 commit 212a963

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dash-fastapi-frontend/wsgi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
serve(
66
app.server,
77
host=AppConfig.app_host,
8-
port=AppConfig.app_port
8+
port=AppConfig.app_port,
9+
trusted_proxy='*',
10+
trusted_proxy_headers='x-forwarded-for',
911
)

0 commit comments

Comments
 (0)