[GH-ISSUE #2908] How to use npm to achieve load balancing #1992

Closed
opened 2026-02-26 07:33:36 +03:00 by kerem · 1 comment
Owner

Originally created by @alex14dark on GitHub (May 10, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2908

Hi Guys, I know there is another way to achieve load balancing,
First you need to create a custom directory under the data/nginx directory corresponding to the server where you deploy npm, and then create a file named http.conf in the custom directory , the content of the file is upstream your_server { server ... }
Then go back to your npm background, select the corresponding Proxy Host
And finally select the Advanced option, fill in the location configuration, such as loaction /api { proxy_pass http://your_server }
OK, like this npm achieves the effect of load balancing

Originally created by @alex14dark on GitHub (May 10, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2908 Hi Guys, I know there is another way to achieve load balancing, First you need to create a custom directory under the data/nginx directory corresponding to the server where you deploy npm, and then create a file named http.conf in the custom directory , the content of the file is upstream your_server { server ... } Then go back to your npm background, select the corresponding Proxy Host And finally select the Advanced option, fill in the location configuration, such as loaction /api { proxy_pass http://your_server } OK, like this npm achieves the effect of load balancing
kerem 2026-02-26 07:33:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@alex14dark commented on GitHub (May 10, 2023):

Sorry, this is not a bug, but I hope this way can help people in need.

<!-- gh-comment-id:1541567729 --> @alex14dark commented on GitHub (May 10, 2023): Sorry, this is not a bug, but I hope this way can help people in need.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1992
No description provided.