This commit is contained in:
2025-03-03 19:52:18 +03:00
parent 4687e46c82
commit 98d9863ffd
2 changed files with 2 additions and 3 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", "rss_proxy:proxy_app"]
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:5050", "app:proxy_app"]

View File

@@ -1,6 +1,7 @@
from flask import Flask
from .config import Config
def proxy_app():
app = Flask(__name__)
app.config.from_object(Config)
@@ -10,5 +11,3 @@ def proxy_app():
rss_proxy.init_proxy(app)
healthcheck.init_healthcheck(app)
return app