From 374418651084b7cd45198751a6fb8de57ec0ab8e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 2 Jun 2026 14:05:21 +0200 Subject: [PATCH] :wrench: Update default nginx limit configuration --- docker/images/files/nginx-entrypoint.sh | 2 +- docker/images/files/nginx.conf.template | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/images/files/nginx-entrypoint.sh b/docker/images/files/nginx-entrypoint.sh index 0e8b39401f..813d587199 100644 --- a/docker/images/files/nginx-entrypoint.sh +++ b/docker/images/files/nginx-entrypoint.sh @@ -44,7 +44,7 @@ export PENPOT_BACKEND_URI=${PENPOT_BACKEND_URI:-http://penpot-backend:6060} export PENPOT_EXPORTER_URI=${PENPOT_EXPORTER_URI:-http://penpot-exporter:6061} export PENPOT_NITRATE_URI=${PENPOT_NITRATE_URI:-http://penpot-nitrate:3000} export PENPOT_HTTP_SERVER_MAX_BODY_SIZE=${PENPOT_HTTP_SERVER_MAX_BODY_SIZE:-367001600} # Default to 350MiB -export PENPOT_IPV6_LISTEN_DIRECTIVE=${PENPOT_IPV6_LISTEN_DIRECTIVE:-"listen [::]:8080 default_server;"} +export PENPOT_IPV6_LISTEN_DIRECTIVE=${PENPOT_IPV6_LISTEN_DIRECTIVE:-"listen [::]:8080 default_server reuseport backlog=16384;"} if [ "${PENPOT_DISABLE_IPV6_LISTEN}" = "true" ]; then export PENPOT_IPV6_LISTEN_DIRECTIVE="" fi diff --git a/docker/images/files/nginx.conf.template b/docker/images/files/nginx.conf.template index 00ef3c1eed..0059d9b32a 100644 --- a/docker/images/files/nginx.conf.template +++ b/docker/images/files/nginx.conf.template @@ -3,7 +3,7 @@ pid /tmp/nginx.pid; include /etc/nginx/overrides/main.d/*.conf; events { - worker_connections 2048; + worker_connections 65535; multi_accept on; } @@ -72,7 +72,7 @@ http { include /etc/nginx/overrides/http.d/*.conf; server { - listen 8080 default_server; + listen 8080 default_server reuseport backlog=16384; ${PENPOT_IPV6_LISTEN_DIRECTIVE} server_name _;