From 0e56213b9a9008584784b8ae8f2008916f62865d Mon Sep 17 00:00:00 2001 From: evanpelle Date: Mon, 16 Jun 2025 18:32:22 -0700 Subject: [PATCH] increase worker connections (#1179) ## Description: Once or twice a week nginx crashes with "768 worker_connections are not enough while connecting to upstream" So increase number of allowed connections. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 80e8cba5b..f4adffac4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,9 @@ RUN npm run build-prod # https://openfront.io/commit.txt RUN echo "$GIT_COMMIT" > static/commit.txt +# Update worker_connections in the existing nginx.conf +RUN sed -i 's/worker_connections [0-9]*/worker_connections 8192/' /etc/nginx/nginx.conf + # Copy Nginx configuration and ensure it's used instead of the default COPY nginx.conf /etc/nginx/conf.d/default.conf RUN rm -f /etc/nginx/sites-enabled/default