mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-28 10:55:54 +03:00
[GH-ISSUE #743] The access list doesn't work if you use custom locations. #629
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#629
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 @fischdenflo on GitHub (Nov 28, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/743
Unfortunately the access list doesn't work if you use it like that.
Originally posted by @fischdenflo in https://github.com/jc21/nginx-proxy-manager/issues/104#issuecomment-735018126
@mochman commented on GitHub (Dec 3, 2020):
For a workaround, you can just add your access criteria to the custom location settings. It has to be updated though, if you change the access list criteria.
@fischdenflo commented on GitHub (Dec 3, 2020):
Is it possible to give me an example? 🙈 But many thanks 🙏
@mochman commented on GitHub (Dec 4, 2020):
Sure. This example only allows local IPs from 192.168.0.0 - 192.168.255.255 to have access.
The way I got this was to make a fake proxy host with an access list I wanted to use. Then I went into my
./data/nginx/proxy_host/folder on my server. There you will see a bunch of numbered .conf files. Open the highest numbered one (the one just created). In thesection of that file, you should see a set of access rules that were made. Just copy those into your actual custom locations.
@fischdenflo commented on GitHub (Dec 4, 2020):
Ok I will test ist. Many Thanks 🙏
@derekoharrow commented on GitHub (Dec 14, 2020):
I'm seeing the same behaviour - access lists seem to be ineffective if you have custom locations specified. This is quite a critical feature to be missing.
How can you setup user basic authentication with custom locations?
@mjeschar commented on GitHub (Jan 19, 2021):
Same issue here, 90% of my domains are using custom locations. I really need the working basic auth. for those services. Any chance to implement it? I really like the GUI!
@l4rm4nd commented on GitHub (Mar 26, 2021):
Custom locations will break any access lists. Further, the HTTP/2 SSL option can also break access lists.
If you need to have custom locations, proceed as explained by @mochman. Configure your access rules specifically for each custom location entry.
For basic auth:
For IP restrictions:
You can combine both. Remember, if you set the satisfy directive to
all, access is granted if a client satisfies both conditions (auth + IP). If you set the directive toany, access is granted if a client satisfies at least one condition.@mcastorina commented on GitHub (Apr 3, 2021):
I think this is a pretty critical bug. The UI implies the access list is effective for the entire proxy host when it's not for custom locations.
@chaptergy commented on GitHub (May 12, 2021):
Duplicate of https://github.com/jc21/nginx-proxy-manager/issues/148