mirror of
https://github.com/shadoll/redmine-mcp.git
synced 2026-08-28 03:27:56 +00:00
fix: enable proxy headers and allow forwarded IPs in uvicorn run
This commit is contained in:
@@ -33,6 +33,6 @@ if __name__ == "__main__":
|
|||||||
else:
|
else:
|
||||||
print("Auth: disabled (MCP_AUTH_TOKEN not set).", flush=True)
|
print("Auth: disabled (MCP_AUTH_TOKEN not set).", flush=True)
|
||||||
|
|
||||||
uvicorn.run(app, host=host, port=port)
|
uvicorn.run(app, host=host, port=port, proxy_headers=True, forwarded_allow_ips="*")
|
||||||
else:
|
else:
|
||||||
mcp.run(transport="stdio")
|
mcp.run(transport="stdio")
|
||||||
|
|||||||
Reference in New Issue
Block a user