From 42309ffb3a54c6468ef856bcce73a10c0b76f90a Mon Sep 17 00:00:00 2001 From: Derek Furst Date: Wed, 21 Oct 2026 03:17:36 -0400 Subject: [PATCH 1/4] updated socket from localhost:5000 to just 5000 to make it work with the new gateway configuration --- src/uwsgi.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uwsgi.ini b/src/uwsgi.ini index 822544b9..f97e2c9e 100644 --- a/src/uwsgi.ini +++ b/src/uwsgi.ini @@ -22,7 +22,7 @@ enable-threads = True threads = 24 # Use http socket for integration with nginx running on the same machine -socket = localhost:5000 +socket = :5000 # Enable socket cleanup when process stop vacuum = true From 7c36c61411e9bf2b3660248498e02fb723c9cf23 Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Wed, 4 Nov 2026 07:50:44 -0500 Subject: [PATCH 2/4] Modify uwsgi.ini for centralized logging Updated logging configuration to centralize through the master process. --- src/uwsgi.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uwsgi.ini b/src/uwsgi.ini index f97e2c9e..d422a13f 100644 --- a/src/uwsgi.ini +++ b/src/uwsgi.ini @@ -5,9 +5,9 @@ chdir = /usr/src/app/src # Application's callbale module = wsgi:application -# Delegate the logging to the master process -# Send logs to stdout instead of file so docker picks it up and writes to AWS CloudWatch +# Centralize logging through the master process log-master=true +logto = /usr/src/app/log/uwsgi-entity-api.log # Master with 12 worker processes (based on CPU number) master = true @@ -40,4 +40,4 @@ stats = localhost:9191 # Makes the stats server accessible via HTTP rather than a raw socket, # allowing standard tools like curl to query it -stats-http = true \ No newline at end of file +stats-http = true From 31cfcfde338d3760d402498cad4f48d1098ab40e Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Wed, 4 Nov 2026 07:58:55 -0500 Subject: [PATCH 3/4] Remove AWS CloudWatch logging settings Removed AWS CloudWatch logging configuration from docker-compose. --- docker/docker-compose.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 3df0f7d8..f8c7fae0 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -34,13 +34,7 @@ services: - "./entity-api/nginx/conf.d:/etc/nginx/conf.d" networks: - gateway_hubmap - # Send docker logs to AWS CloudWatch - logging: - driver: awslogs - options: - awslogs-region: us-east-1 - awslogs-group: entity-api-docker-logs - awslogs-stream: ${LOG_STREAM} + networks: # This is the network created by gateway to enable communicaton between multiple docker-compose projects From f0fd7d0d41acb6359af905b0aea311483d720589 Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Wed, 4 Nov 2026 07:59:05 -0500 Subject: [PATCH 4/4] Delete docker/example.env --- docker/example.env | 1 - 1 file changed, 1 deletion(-) delete mode 100644 docker/example.env diff --git a/docker/example.env b/docker/example.env deleted file mode 100644 index b19e3e04..00000000 --- a/docker/example.env +++ /dev/null @@ -1 +0,0 @@ -LOG_STREAM=DEV