gunicorn can still run on port 8000, docker will translate the port.

This commit is contained in:
Samuel Clay 2025-02-02 12:34:23 -08:00
parent 8053c40b7b
commit 619dec1688
3 changed files with 1 additions and 5 deletions

View file

@ -129,8 +129,6 @@
DOCKERBUILD: ""
state: started
command: gunicorn --config /srv/newsblur/config/gunicorn_conf.py newsblur_web.wsgi:application
env:
TEMP8001: "true"
hostname: "{{ inventory_hostname }}"
log_driver: json-file
log_options:

View file

@ -12,8 +12,6 @@ GIGS_OF_MEMORY = psutil.virtual_memory().total / 1024 / 1024 / 1024.0
NUM_CPUS = psutil.cpu_count()
bind = "0.0.0.0:8000"
if os.environ.get("TEMP8001", False):
bind = "0.0.0.0:8001"
pidfile = "/srv/newsblur/logs/gunicorn.pid"
logfile = "/srv/newsblur/logs/production.log"

View file

@ -84,7 +84,7 @@ urlpatterns = [
url(r"^account/ifttt/v1/", include("apps.oauth.urls")),
url(r"^account/", include("oauth2_provider.urls", namespace="oauth2_provider")),
url(r"^monitor/", include("apps.monitor.urls"), name="monitor"),
url(r"^health-check/", static_views.health_check, name="health-check"),
url(r"^health-check/?", static_views.health_check, name="health-check"),
url("", include("django_prometheus.urls")),
]