UI - bind gunicorn to 127.0.0.1/0.0.0.0:5000

This commit is contained in:
bunkerity 2021-07-09 10:55:09 +02:00
parent 4dd1ff8479
commit ba197dfa43
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
2 changed files with 2 additions and 2 deletions

View File

@ -20,4 +20,4 @@ EXPOSE 5000
WORKDIR /opt/bunkerized-nginx/ui
USER nginx:nginx
ENTRYPOINT ["/usr/bin/gunicorn", "--bind", "unix:bunkerized-nginx-ui.sock", "-m", "007", "wsgi:app"]
ENTRYPOINT ["/usr/bin/gunicorn", "--bind", "0.0.0.0:5000", "-m", "007", "wsgi:app"]

View File

@ -6,7 +6,7 @@ After=network.target
User=nginx
Group=nginx
WorkingDirectory=/opt/bunkerized-nginx/ui
ExecStart=gunicorn --bind unix:bunkerized-nginx-ui.sock -m 007 wsgi:app
ExecStart=gunicorn --bind 127.0.0.1:5000 -m 007 wsgi:app
[Install]
WantedBy=multi-user.target