[GH-ISSUE #156] Support upstream / load balancing #137

Open
opened 2026-02-26 06:30:35 +03:00 by kerem · 62 comments
Owner

Originally created by @terry-fei on GitHub (Jun 5, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/156

Describe the solution you'd like
like multi Forward host to upstream
or can edit http level config

Originally created by @terry-fei on GitHub (Jun 5, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/156 **Describe the solution you'd like** like multi Forward host to upstream or can edit http level config
Author
Owner

@beloniki commented on GitHub (Jul 4, 2019):

It would be nice to get possibility of upstream management. Realy needed)

<!-- gh-comment-id:508429752 --> @beloniki commented on GitHub (Jul 4, 2019): It would be nice to get possibility of upstream management. Realy needed)
Author
Owner

@TimeBye commented on GitHub (Apr 27, 2020):

Is there new progress?

<!-- gh-comment-id:619724918 --> @TimeBye commented on GitHub (Apr 27, 2020): Is there new progress?
Author
Owner

@Xenon341 commented on GitHub (Jun 8, 2021):

Hi there, any news about this feature ?
Maybe for the v3 version ?

Would be awesome !

Thank you for this very useful software :)

<!-- gh-comment-id:856715058 --> @Xenon341 commented on GitHub (Jun 8, 2021): Hi there, any news about this feature ? Maybe for the v3 version ? Would be awesome ! Thank you for this very useful software :)
Author
Owner

@chaptergy commented on GitHub (Jun 8, 2021):

Won't be in v2 unless someone implements it in a pull request, but it's likely to be included in v3, but no promises.

<!-- gh-comment-id:856736612 --> @chaptergy commented on GitHub (Jun 8, 2021): Won't be in v2 unless someone implements it in a pull request, but it's likely to be included in [v3](https://github.com/jc21/nginx-proxy-manager/discussions/1202), but no promises.
Author
Owner

@febriyan1302 commented on GitHub (Aug 1, 2021):

Won't be in v2 unless someone implements it in a pull request, but it's likely to be included in v3, but no promises.

can't wait for upstream, thanks for your work ! 👍

<!-- gh-comment-id:890605507 --> @febriyan1302 commented on GitHub (Aug 1, 2021): > Won't be in v2 unless someone implements it in a pull request, but it's likely to be included in v3, but no promises. can't wait for upstream, thanks for your work ! 👍
Author
Owner

@johncadengo commented on GitHub (Sep 23, 2021):

Is there an estimate for when v3 comes out? Thanks for your work 👍

<!-- gh-comment-id:925525578 --> @johncadengo commented on GitHub (Sep 23, 2021): Is there an estimate for when v3 comes out? Thanks for your work 👍
Author
Owner

@msiemens commented on GitHub (Sep 23, 2021):

Is there an estimate for when v3 comes out? Thanks for your work 👍

See https://github.com/jc21/nginx-proxy-manager/discussions/1202:

This list of features can change at any time. Can I also ask that you don't ask for a due date for version 3. There's a LOT to do and I don't want to stick to any promises. When I know, you'll know :)

<!-- gh-comment-id:925574795 --> @msiemens commented on GitHub (Sep 23, 2021): > Is there an estimate for when v3 comes out? Thanks for your work 👍 See https://github.com/jc21/nginx-proxy-manager/discussions/1202: > This list of features can change at any time. Can I also ask that you don't ask for a due date for version 3. There's a LOT to do and I don't want to stick to any promises. When I know, you'll know :)
Author
Owner

@johncadengo commented on GitHub (Sep 23, 2021):

@msiemens thanks. That discussion is exactly what I was looking for.

<!-- gh-comment-id:925609474 --> @johncadengo commented on GitHub (Sep 23, 2021): @msiemens thanks. That discussion is exactly what I was looking for.
Author
Owner

@kamilkobak commented on GitHub (Jan 5, 2022):

Hi there, any news about this feature ?

<!-- gh-comment-id:1005699243 --> @kamilkobak commented on GitHub (Jan 5, 2022): Hi there, any news about this feature ?
Author
Owner

@benzavision commented on GitHub (Oct 5, 2022):

waiting for it

<!-- gh-comment-id:1268928754 --> @benzavision commented on GitHub (Oct 5, 2022): waiting for it
Author
Owner

@BrettDean commented on GitHub (Oct 16, 2022):

really need it, plz

<!-- gh-comment-id:1279952585 --> @BrettDean commented on GitHub (Oct 16, 2022): really need it, plz
Author
Owner

@Xileck commented on GitHub (Nov 15, 2022):

waiting for this too, it would be awesome

<!-- gh-comment-id:1315870148 --> @Xileck commented on GitHub (Nov 15, 2022): waiting for this too, it would be awesome
Author
Owner

@redimongo commented on GitHub (Nov 19, 2022):

How can we help in the development of this feature?

<!-- gh-comment-id:1320818674 --> @redimongo commented on GitHub (Nov 19, 2022): How can we help in the development of this feature?
Author
Owner

@flikites commented on GitHub (Nov 23, 2022):

Need this feature too.

<!-- gh-comment-id:1324506243 --> @flikites commented on GitHub (Nov 23, 2022): Need this feature too.
Author
Owner

@MIkkelMadsen commented on GitHub (Dec 3, 2022):

Need this feature too.

<!-- gh-comment-id:1336273251 --> @MIkkelMadsen commented on GitHub (Dec 3, 2022): Need this feature too.
Author
Owner

@wpresident commented on GitHub (Jan 5, 2023):

2023 :)

<!-- gh-comment-id:1371932925 --> @wpresident commented on GitHub (Jan 5, 2023): 2023 :)
Author
Owner

@Tweety2oo6 commented on GitHub (Jan 22, 2023):

need this feature too

<!-- gh-comment-id:1399610146 --> @Tweety2oo6 commented on GitHub (Jan 22, 2023): need this feature too
Author
Owner

@amirtq commented on GitHub (Feb 8, 2023):

Hi there,
First of all, thank you very much for building this lovely project :)
Here you mentioned there will be load balancing capability in V3, is there any ETA?
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1963#issuecomment-1082769736

<!-- gh-comment-id:1422121233 --> @amirtq commented on GitHub (Feb 8, 2023): Hi there, First of all, thank you very much for building this lovely project :) Here you mentioned there will be load balancing capability in V3, is there any ETA? https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1963#issuecomment-1082769736
Author
Owner

@tomus85 commented on GitHub (Feb 19, 2023):

Would love this feature too. Love to implement an API cluster with the upstream feature.

<!-- gh-comment-id:1435932549 --> @tomus85 commented on GitHub (Feb 19, 2023): Would love this feature too. Love to implement an API cluster with the upstream feature.
Author
Owner

@akbaryahya commented on GitHub (Mar 11, 2023):

I also need this feature so I can backup localhost if the cloud is down

<!-- gh-comment-id:1464827110 --> @akbaryahya commented on GitHub (Mar 11, 2023): I also need this feature so I can backup localhost if the cloud is down
Author
Owner

@sor88 commented on GitHub (Apr 30, 2023):

Hi. I also very need this function for load balancing.

<!-- gh-comment-id:1529053569 --> @sor88 commented on GitHub (Apr 30, 2023): Hi. I also very need this function for load balancing.
Author
Owner

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

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

<!-- gh-comment-id:1541582980 --> @alex14dark commented on GitHub (May 10, 2023): 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
Author
Owner

@wpresident commented on GitHub (May 15, 2023):

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

Looks like it's working
Want to mention that you need to create not any folder, but named custom exactly (it took me 2 hours to guess it, lol)

<!-- gh-comment-id:1547575353 --> @wpresident commented on GitHub (May 15, 2023): > 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 Looks like it's working Want to mention that you need to create not any folder, but named `custom `exactly (it took me 2 hours to guess it, lol)
Author
Owner

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

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

Looks like it's working Want to mention that you need to create not any folder, but named custom exactly (it took me 2 hours to guess it, lol)

Maybe my expression is not clear enough...I have clearly stated above, it is the custom folder

<!-- gh-comment-id:1548927184 --> @alex14dark commented on GitHub (May 16, 2023): > > 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 > > Looks like it's working Want to mention that you need to create not any folder, but named `custom `exactly (it took me 2 hours to guess it, lol) Maybe my expression is not clear enough...I have clearly stated above, it is the custom folder
Author
Owner

@rodrigobrito commented on GitHub (Jul 11, 2023):

need this feature too!

<!-- gh-comment-id:1631449331 --> @rodrigobrito commented on GitHub (Jul 11, 2023): need this feature too!
Author
Owner

@investlab commented on GitHub (Aug 12, 2023):

Need this feature too.

<!-- gh-comment-id:1675638120 --> @investlab commented on GitHub (Aug 12, 2023): Need this feature too.
Author
Owner

@aminotran commented on GitHub (Aug 25, 2023):

me too. Need this feature too.

<!-- gh-comment-id:1692861559 --> @aminotran commented on GitHub (Aug 25, 2023): me too. Need this feature too.
Author
Owner

@wpresident commented on GitHub (Aug 25, 2023):

@rodrigobrito @investlab @aminotran
No need to wait. See few posts above : https://github.com/NginxProxyManager/nginx-proxy-manager/issues/156#issuecomment-1541582980

<!-- gh-comment-id:1692865411 --> @wpresident commented on GitHub (Aug 25, 2023): @rodrigobrito @investlab @aminotran No need to wait. See few posts above : https://github.com/NginxProxyManager/nginx-proxy-manager/issues/156#issuecomment-1541582980
Author
Owner

@MarcS1975 commented on GitHub (Jan 6, 2024):

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

Can this setup also be used as a failover configuration?

<!-- gh-comment-id:1879773304 --> @MarcS1975 commented on GitHub (Jan 6, 2024): > 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 Can this setup also be used as a failover configuration?
Author
Owner

@github-actions[bot] commented on GitHub (Jul 13, 2024):

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

<!-- gh-comment-id:2226703744 --> @github-actions[bot] commented on GitHub (Jul 13, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@JBlond commented on GitHub (Jul 14, 2024):

Please implement this feature.

<!-- gh-comment-id:2227429245 --> @JBlond commented on GitHub (Jul 14, 2024): Please implement this feature.
Author
Owner

@parkjaeil0x01 commented on GitHub (Jul 31, 2024):

Please, support this feature.

<!-- gh-comment-id:2259687999 --> @parkjaeil0x01 commented on GitHub (Jul 31, 2024): Please, support this feature.
Author
Owner

@HarrisonLawrence commented on GitHub (Aug 16, 2024):

I'd also love this feature

<!-- gh-comment-id:2292595610 --> @HarrisonLawrence commented on GitHub (Aug 16, 2024): I'd also love this feature
Author
Owner

@patrick7 commented on GitHub (Aug 25, 2024):

+9999

<!-- gh-comment-id:2308616148 --> @patrick7 commented on GitHub (Aug 25, 2024): +9999
Author
Owner

@Laevate1n commented on GitHub (Sep 8, 2024):

Please , add support for this!

<!-- gh-comment-id:2336758095 --> @Laevate1n commented on GitHub (Sep 8, 2024): Please , add support for this!
Author
Owner

@sammyke007 commented on GitHub (Sep 23, 2024):

+1!

<!-- gh-comment-id:2368525874 --> @sammyke007 commented on GitHub (Sep 23, 2024): +1!
Author
Owner

@AlphaBs commented on GitHub (Sep 30, 2024):

need this feature

<!-- gh-comment-id:2381911746 --> @AlphaBs commented on GitHub (Sep 30, 2024): need this feature
Author
Owner

@CRASH-Tech commented on GitHub (Oct 12, 2024):

+1

<!-- gh-comment-id:2408516911 --> @CRASH-Tech commented on GitHub (Oct 12, 2024): +1
Author
Owner

@jbhardman commented on GitHub (Oct 31, 2024):

Would love this. Was bit today having only one backend server that died. I have a backup, but it was not configured at the url in NPM, obviously, because it's not supported.

<!-- gh-comment-id:2448990529 --> @jbhardman commented on GitHub (Oct 31, 2024): Would love this. Was bit today having only one backend server that died. I have a backup, but it was not configured at the url in NPM, obviously, because it's not supported.
Author
Owner

@IEatCodeDaily commented on GitHub (Nov 1, 2024):

+1

<!-- gh-comment-id:2451403175 --> @IEatCodeDaily commented on GitHub (Nov 1, 2024): +1
Author
Owner

@yzaraoui commented on GitHub (Nov 6, 2024):

+1

<!-- gh-comment-id:2461024689 --> @yzaraoui commented on GitHub (Nov 6, 2024): +1
Author
Owner

@rstaniek commented on GitHub (Nov 15, 2024):

+1 would love to be able to configure load balancing from the UI

<!-- gh-comment-id:2479114304 --> @rstaniek commented on GitHub (Nov 15, 2024): +1 would love to be able to configure load balancing from the UI
Author
Owner

@PantACRO4life commented on GitHub (Nov 17, 2024):

+1

<!-- gh-comment-id:2481024677 --> @PantACRO4life commented on GitHub (Nov 17, 2024): +1
Author
Owner

@PantACRO4life commented on GitHub (Nov 17, 2024):

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

hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline.

image
image
image

<!-- gh-comment-id:2481052778 --> @PantACRO4life commented on GitHub (Nov 17, 2024): > 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 hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline. ![image](https://github.com/user-attachments/assets/fcf83210-ae6b-44e5-8def-c5b80245753e) ![image](https://github.com/user-attachments/assets/f8cb571b-2b2f-438f-971a-2a33dcde78d9) ![image](https://github.com/user-attachments/assets/8d6c8f05-87dc-476d-ba0e-a3aa0422854d)
Author
Owner

@baguilartech commented on GitHub (Dec 11, 2024):

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

hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline.

image image image

Did you ever get this figured out? I think I am close but I don't know what you would put for the forwarded host if you are pointing a location to an upstream.

<!-- gh-comment-id:2536823312 --> @baguilartech commented on GitHub (Dec 11, 2024): > > 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 > > hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline. > > ![image](https://private-user-images.githubusercontent.com/6643071/386935539-fcf83210-ae6b-44e5-8def-c5b80245753e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5NDE1ODQsIm5iZiI6MTczMzk0MTI4NCwicGF0aCI6Ii82NjQzMDcxLzM4NjkzNTUzOS1mY2Y4MzIxMC1hZTZiLTQ0ZTUtOGRlZi1jNWI4MDI0NTc1M2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMTFUMTgyMTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzhmMjZiMjEyNzQ4MTJkMjI4OWFjODljNDllMWVhYzgwYWJiYzRiZGZlYzcwYTJmMDE1NDUyOWI0OTc1YmZjZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.J4CBoGK17uVozOewxN8tc12QwKyiOobZUBCYXX43DoU) ![image](https://private-user-images.githubusercontent.com/6643071/386935893-f8cb571b-2b2f-438f-971a-2a33dcde78d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5NDE1ODQsIm5iZiI6MTczMzk0MTI4NCwicGF0aCI6Ii82NjQzMDcxLzM4NjkzNTg5My1mOGNiNTcxYi0yYjJmLTQzOGYtOTcxYS0yYTMzZGNkZTc4ZDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhN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hvc3QifQ.ML2wZT2lmnuhgm9DBoZo8XptnxTwTNKDMpw3L2R1z-0) Did you ever get this figured out? I think I am close but I don't know what you would put for the forwarded host if you are pointing a location to an upstream.
Author
Owner

@PantACRO4life commented on GitHub (Dec 11, 2024):

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

hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline.
image image image

Did you ever get this figured out? I think I am close but I don't know what you would put for the forwarded host if you are pointing a location to an upstream.

I ended up migrating for HAProxy.

<!-- gh-comment-id:2537069971 --> @PantACRO4life commented on GitHub (Dec 11, 2024): > > > 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 > > > > > > hi mate, what do you put as forwarded host for the proxy host ? If I put one of the 2 ip set in host.conf for the load balancer, it put the proxy host offline. > > ![image](https://private-user-images.githubusercontent.com/6643071/386935539-fcf83210-ae6b-44e5-8def-c5b80245753e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5NDE1ODQsIm5iZiI6MTczMzk0MTI4NCwicGF0aCI6Ii82NjQzMDcxLzM4NjkzNTUzOS1mY2Y4MzIxMC1hZTZiLTQ0ZTUtOGRlZi1jNWI4MDI0NTc1M2UucG5nP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ZWRIZWFkZXJzPWhvc3QifQ.x0Ml5k2X0hDjaqzdeIuDKUm4PNR3LGnwyaO6GEWJGTk) ![image](https://private-user-images.githubusercontent.com/6643071/386936129-8d6c8f05-87dc-476d-ba0e-a3aa0422854d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzM5NDE1ODQsIm5iZiI6MTczMzk0MTI4NCwicGF0aCI6Ii82NjQzMDcxLzM4NjkzNjEyOS04ZDZjOGYwNS04N2RjLTQ3NmQtYmEwZS1hM2FhMDQyMjg1NGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MTIxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDEyMTFUMTgyMTI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjM4MzhhMWE1OGM5Mzc0OGVlZDNjNzk1OGIxYmU4ZGJjY2Y3NmI1MzgzYjY3ODc0MjAwMjM3MDY0ZjVkNTA1MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ML2wZT2lmnuhgm9DBoZo8XptnxTwTNKDMpw3L2R1z-0) > > Did you ever get this figured out? I think I am close but I don't know what you would put for the forwarded host if you are pointing a location to an upstream. I ended up migrating for HAProxy.
Author
Owner

@patrick7 commented on GitHub (Dec 11, 2024):

Another idea, if all servers share the port: how about just creating a regular dns round robin entry for all upstream servers, and use this name in nmp?

<!-- gh-comment-id:2537073739 --> @patrick7 commented on GitHub (Dec 11, 2024): Another idea, if all servers share the port: how about just creating a regular dns round robin entry for all upstream servers, and use this name in nmp?
Author
Owner

@filipemcg commented on GitHub (Jan 3, 2025):

It's not straight forward how to setup NPM as a loadbalancer, so I made a video: https://youtu.be/AwIejcfOAVI?si=bZbxY0HKLAVqeu7O

<!-- gh-comment-id:2569082426 --> @filipemcg commented on GitHub (Jan 3, 2025): It's not straight forward how to setup NPM as a loadbalancer, so I made a video: https://youtu.be/AwIejcfOAVI?si=bZbxY0HKLAVqeu7O
Author
Owner

@github-actions[bot] commented on GitHub (Jul 22, 2025):

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

<!-- gh-comment-id:3100494393 --> @github-actions[bot] commented on GitHub (Jul 22, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@throny commented on GitHub (Jul 22, 2025):

👍

<!-- gh-comment-id:3101456127 --> @throny commented on GitHub (Jul 22, 2025): 👍
Author
Owner

@lindstrm commented on GitHub (Aug 2, 2025):

👍

<!-- gh-comment-id:3146584293 --> @lindstrm commented on GitHub (Aug 2, 2025): 👍
Author
Owner

@JoelJoos commented on GitHub (Aug 22, 2025):

👍

<!-- gh-comment-id:3213059730 --> @JoelJoos commented on GitHub (Aug 22, 2025): 👍
Author
Owner

@Bebs01 commented on GitHub (Sep 8, 2025):

👍

<!-- gh-comment-id:3264204823 --> @Bebs01 commented on GitHub (Sep 8, 2025): 👍
Author
Owner

@MuhLitfan commented on GitHub (Sep 16, 2025):

👍

<!-- gh-comment-id:3296364690 --> @MuhLitfan commented on GitHub (Sep 16, 2025): 👍
Author
Owner

@gybrid commented on GitHub (Oct 10, 2025):

👍

<!-- gh-comment-id:3389472041 --> @gybrid commented on GitHub (Oct 10, 2025): 👍
Author
Owner

@aminotran commented on GitHub (Oct 22, 2025):

Try it: nginx-love
It's ready for load balancing and more.

<!-- gh-comment-id:3434279448 --> @aminotran commented on GitHub (Oct 22, 2025): Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more.
Author
Owner

@tqtuan1512 commented on GitHub (Oct 31, 2025):

Try it: nginx-love It's ready for load balancing and more.

Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.

<!-- gh-comment-id:3474440016 --> @tqtuan1512 commented on GitHub (Oct 31, 2025): > Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more. Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.
Author
Owner

@aminotran commented on GitHub (Nov 2, 2025):

Try it: nginx-love It's ready for load balancing and more.

Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.

It's support all port, unlimited

<!-- gh-comment-id:3477654029 --> @aminotran commented on GitHub (Nov 2, 2025): > > Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more. > > Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000. It's support all port, unlimited
Author
Owner

@tqtuan1512 commented on GitHub (Nov 3, 2025):

Try it: nginx-love It's ready for load balancing and more.

Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.

It's support all port, unlimited

Can you give guide for this ? thanks so much.

<!-- gh-comment-id:3478796447 --> @tqtuan1512 commented on GitHub (Nov 3, 2025): > > > Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more. > > > > > > Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000. > > It's support all port, unlimited Can you give guide for this ? thanks so much.
Author
Owner

@tqtuan1512 commented on GitHub (Nov 3, 2025):

Try it: nginx-love It's ready for load balancing and more.

Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.

It's support all port, unlimited

Image

I already tried to it, but it must be port > 100000.

<!-- gh-comment-id:3478837685 --> @tqtuan1512 commented on GitHub (Nov 3, 2025): > > > Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more. > > > > > > Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000. > > It's support all port, unlimited <img width="1620" height="780" alt="Image" src="https://github.com/user-attachments/assets/cfc960de-b13c-441f-b917-3ca5a99fd490" /> I already tried to it, but it must be port > 100000.
Author
Owner

@aminotran commented on GitHub (Nov 3, 2025):

Try it: nginx-love It's ready for load balancing and more.

Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000.

It's support all port, unlimited

Image I already tried to it, but it must be port > 100000.

yeah, it's NLB. now, it's support port from 10.000 to 65.xxx
You can request feature or change.
Additionally, since it's open source, you can completely remove this limitation yourself.

<!-- gh-comment-id:3480475671 --> @aminotran commented on GitHub (Nov 3, 2025): > > > > Try it: [nginx-love](https://github.com/TinyActive/nginx-love) It's ready for load balancing and more. > > > > > > > > > Is it support UDP port 443 for load balancer ? I'm not sure and it must be UDP port >10000. > > > > > > It's support all port, unlimited > > <img alt="Image" width="1620" height="780" src="https://private-user-images.githubusercontent.com/15353440/508792151-cfc960de-b13c-441f-b917-3ca5a99fd490.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NjIxNzU4MDQsIm5iZiI6MTc2MjE3NTUwNCwicGF0aCI6Ii8xNTM1MzQ0MC81MDg3OTIxNTEtY2ZjOTYwZGUtYjEzYy00NDFmLWI5MTctM2NhNWE5OWZkNDkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTExMDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUxMTAzVDEzMTE0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1Y2ZlMDVlYmFiMGVjNjY5ZTBmNWMzZWU5ZTE4ZmU4N2I0ZjZhM2Q4ZDRmOWUyZmM0NDEyNDQ0ODY2MjE3MDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.YVDIk4Yzg55W0BE_jRsv2wERQ6scM5WZjeJwsQK_zCM"> > I already tried to it, but it must be port > 100000. yeah, it's NLB. now, it's support port from 10.000 to 65.xxx You can request feature or change. Additionally, since it's open source, you can completely remove this limitation yourself.
Author
Owner

@lolmachine4 commented on GitHub (Nov 29, 2025):

👍

<!-- gh-comment-id:3591763411 --> @lolmachine4 commented on GitHub (Nov 29, 2025): 👍
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#137
No description provided.