lighttpd_basic.conf 772 B

123456789101112131415161718192021222324
  1. $HTTP["host"] =~ "kibana" {
  2. server.document-root = "/var/ww/kibana/src"
  3. auth.backend = "plain"
  4. auth.backend.plain.userfile = "/etc/lighttpd/kibanapassword"
  5. index-file.names = ( "index.html", "index.htm" )
  6. auth.require = ( "/" => (
  7. "method" => "basic",
  8. "realm" => "Password Protected",
  9. "require" => "valid-user"
  10. )
  11. )
  12. $HTTP["url"] =~ "^/kibana-int/(dashboard/|temp).*$" {
  13. proxy.balance = "hash"
  14. proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
  15. }
  16. $HTTP["url"] =~ "^.*/_(mapping|search|nodes|aliases)$" {
  17. proxy.balance = "hash"
  18. proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "9200" ) ) )
  19. }
  20. }