mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/c-icap: fix locahost ACL (#3667)
This commit is contained in:
@@ -46,7 +46,8 @@ ServerName {{ system.hostname }}
|
||||
{% if helpers.exists('OPNsense.proxy.forward.icap.SendUsername') and OPNsense.proxy.forward.icap.SendUsername == '1' %}
|
||||
RemoteProxyUsers on
|
||||
acl AUTH auth *
|
||||
icap_access allow AUTH 127.0.0.1
|
||||
acl localserver srvip 127.0.0.1
|
||||
icap_access allow AUTH localserver
|
||||
{% else %}
|
||||
RemoteProxyUsers off
|
||||
{% endif %}
|
||||
@@ -61,7 +62,8 @@ RemoteProxyUserHeader {{OPNsense.proxy.forward.icap.UsernameHeader}}
|
||||
{% else %}
|
||||
RemoteProxyUsers on
|
||||
acl AUTH auth *
|
||||
icap_access allow AUTH 127.0.0.1
|
||||
acl localserver srvip 127.0.0.1
|
||||
icap_access allow AUTH localserver
|
||||
RemoteProxyUserHeaderEncoded on
|
||||
RemoteProxyUserHeader X-Authenticated-User
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user