fixes
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user