This commit is contained in:
2025-03-03 21:46:28 +03:00
parent 81d35f9d48
commit 89df7980cf
2 changed files with 5 additions and 2 deletions

View File

@@ -19,4 +19,4 @@ EXPOSE 5050
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD python3 test.py
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:5050", "proxy:proxy_app()"]
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:5050", "proxy:proxy_app"]

View File

@@ -1,10 +1,13 @@
from flask import Flask
def proxy_app():
def create_app():
app = Flask('proxy')
from proxy import rss_proxy, healthcheck
rss_proxy.init_proxy(app)
healthcheck.init_healthcheck(app)
return app
proxy_app = create_app()