mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1885] Not getting user's correct IP (getting NPM docker container's local ip) #1376
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#1376
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 @Aniket-IN on GitHub (Feb 23, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1885
Hi guys,
I'm very new to the self-hosting world, not have much experience in
NginxorApache.I'm running a few services like
Laravel,PhpMyAdmin,NextCloud.All of these services running on
Apache.Now the problem is Laravel and PhpMyAdmin not getting correct user ip (getting NPM docker container's local ip).

Altho I've checked my Laravel application is getting correct headers like
x-forwarded-forandx-real-ipBut after googling for an hour, I noticed

NextCloudis getting the correct user IP.When I looked at NextCloud's GitHub page, there they mentioned.
I also tried to do the same with my laravel application (adding
['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']to$proxies)**laravel provides a
TrustProxies.phpmiddlewareAnd it worked !!!
But now I have to configure PhpMyAdmin and all services like this.
I was wondering if there's a way to achieve the same from our Nginx Proxy server's end.
So that we don't have to do that on every container.
Thank you so much in advance :)
And also Thank you for this package, it's truly amazing..
@github-actions[bot] commented on GitHub (Feb 23, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Apr 8, 2025):
Issue was closed due to inactivity.