NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.32k stars 2.58k forks source link

Nginx Proxy Manager Load Balancing... #2840

Open zerajim opened 1 year ago

zerajim commented 1 year ago

Good day..

i am new using the NPM, how can i config the load balancing here in NPM is it in the advance tab? or custom location?

and how can i achieve this??? is there any sample file so i can follow thru?

Hoping you can help me implement the load balancing in NPM

*Note: i ask ChatGPT for this then the response that in the NPM there's a upstream tab or section but i didn't see that in NPM.. hehehehehhe

Thanks a lot guys

nathen418 commented 1 year ago

afaik this feature does not exist in NPM yet. might get added soon though I hope.

check out: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1963 and: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/156

alex14dark commented 1 year ago

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

nathen418 commented 1 year ago

true true you can always edit the nginx config and host files, but my point is there is no way to do it through the web interface. but yea this is totally a valid solution.

JS-E commented 11 months ago

Think a discussion has been brought up here -> https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2917

github-actions[bot] commented 4 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1:

sreekanthedayar commented 3 months ago

Waiting for this feature to get implemented.