mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed and compacted rules
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
$HTTP["host"] =~ "kibana" {
|
||||
|
||||
server.document-root = "/var/www/kibana/src"
|
||||
server.document-root = "/var/ww/kibana/src"
|
||||
auth.backend = "plain"
|
||||
auth.backend.plain.userfile = "/etc/lighttpd/kibanapassword"
|
||||
|
||||
@@ -13,27 +13,11 @@ $HTTP["host"] =~ "kibana" {
|
||||
)
|
||||
)
|
||||
|
||||
$HTTP["url"] =~ "^/kibana-int/temp.*$" {
|
||||
$HTTP["url"] =~ "^/kibana-int/(dashboard/|temp).*$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
$HTTP["url"] =~ "^/kibana-int/dashboard/.*$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
$HTTP["url"] =~ "^/_mappings$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
$HTTP["url"] =~ "^/_search$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
$HTTP["url"] =~ "^/_nodes$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
$HTTP["url"] =~ "^/_aliases$" {
|
||||
$HTTP["url"] =~ "^.*/_(mapping|search|nodes|aliases)$" {
|
||||
proxy.balance = "hash"
|
||||
proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
|
||||
}
|
||||
|
Reference in New Issue
Block a user