mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Match and apply LocationMatch rules
This commit is contained in:
@@ -31,15 +31,15 @@
|
|||||||
</Proxy>
|
</Proxy>
|
||||||
|
|
||||||
# Proxy for _aliases and .*/_search
|
# Proxy for _aliases and .*/_search
|
||||||
<LocationMatch "^(/_aliases|/_nodes|.*/_search|.*/_mapping)$">
|
<LocationMatch "^/(_nodes|_aliases|_search|.*/_search|_mapping|.*/_mapping)$">
|
||||||
ProxyPassMatch http://127.0.0.1:9200
|
ProxyPassMatch http://127.0.0.1:9200/$1
|
||||||
ProxyPassReverse http://127.0.0.1:9200
|
ProxyPassReverse http://127.0.0.1:9200/$1
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
||||||
# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected)
|
# Proxy for kibana-int/{dashboard,temp} stuff (if you don't want auth on /, then you will want these to be protected)
|
||||||
<LocationMatch "^(/kibana-int/dashboard/|/kibana-int/temp).*$">
|
<LocationMatch "^/(kibana-int/dashboard/|kibana-int/temp)(.*)$">
|
||||||
ProxyPassMatch http://127.0.0.1:9200
|
ProxyPassMatch http://127.0.0.1:9200/$1$2
|
||||||
ProxyPassReverse http://127.0.0.1:9200
|
ProxyPassReverse http://127.0.0.1:9200/$1$2
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
||||||
# Optional disable auth for a src IP (eg: your monitoring host or subnet)
|
# Optional disable auth for a src IP (eg: your monitoring host or subnet)
|
||||||
|
|||||||
Reference in New Issue
Block a user