Harden Open-Meteo rate limiting

This commit is contained in:
2569718930@qq.com
2026-05-18 00:13:51 +08:00
parent 6cee86ec7b
commit fd59cd018d
8 changed files with 178 additions and 23 deletions
+3 -1
View File
@@ -39,5 +39,7 @@ if __name__ == "__main__":
"web.app:app",
host="0.0.0.0",
port=8000,
workers=int(os.getenv("UVICORN_WORKERS", "4")),
# Default to a single worker so per-process weather-source guards do
# not multiply outbound Open-Meteo traffic on small VPS deployments.
workers=int(os.getenv("UVICORN_WORKERS", "1")),
)