mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #1435] worker_connections increase #1115
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PavelkaDavid on GitHub (Sep 27, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1435
Hi, I have nginx proxy manager running in docker container and it hosts wordpress. In peak time web sometimes throw "500 Internal Server Error".

When searching through the error logs I always found this:
I've wanted to increase worker_connections, but I was unlucky as the only possible way is to add it to "/data/nginx/custom/root.conf":
That resulted into this error: "events" directive is duplicate in /data/nginx/custom/root.conf:1
So I'm out of ideas and replacing /etc/nginx/nginx.conf directly seems sketchy to me. Is there another way?
Thank you.
@chaptergy commented on GitHub (Oct 5, 2021):
Unfortunately there is no other way than either to edit the file inside the container each time you update or to mount a different nginx.conf into the container.
@jearton commented on GitHub (Mar 10, 2022):
+1
@e3ndr commented on GitHub (Jun 12, 2025):
Don't want to necro, but I came here from Google and solved the issue (cleanly).
In your Docker volume for NPM, there's now a
/nginx/customfolder (documented here). I made a file at/nginx/custom/events.confand put the following contents:Hope this helps someone else! ❤️