Skip to content

Instantly share code, notes, and snippets.

@chroming
Created July 2, 2020 16:38
Show Gist options
  • Select an option

  • Save chroming/89e5fb1c8933169decd390e6daf45821 to your computer and use it in GitHub Desktop.

Select an option

Save chroming/89e5fb1c8933169decd390e6daf45821 to your computer and use it in GitHub Desktop.
ElasticSearch+Kibana with Caddy proxy

First you should set kibana.yaml:

server.basePath: "/kibana"

Don't change server.rewriteBasePath: false

Then change Caddyfile:

192.168.10.1:80

route /es/* {
        uri strip_prefix /es
        reverse_proxy localhost:9200
}
route /kibana/* {
        uri strip_prefix /kibana
        reverse_proxy localhost:5601
}
@shanehh
Copy link
Copy Markdown

shanehh commented Nov 9, 2021

thank you!

@timnrose
Copy link
Copy Markdown

Helpful πŸš€ I tried to achieve the same with
rewrite * /{path[2:]}
and struggled for a few hours. Your solution still works in 2025 with my setup using a dockerized Kibana and Caddy πŸŽ‰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment