Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- frontend web
- bind *:80
- reqadd X-Forwarded-Proto:\ http if !{ ssl_fc }
- reqadd X-Forwarded-Proto:\ https if { ssl_fc }
- default_backend myapp_ui
- ...
- acl is_kibana path_sub logs
- acl is_kibana path_sub kibana
- acl is_kibana path_sub bundles
- acl is_kibana path_sub app/kibana
- acl is_kibana path_sub plugins/kibana/assets
- use_backend kibana if is_kibana
- use_backend es_head if is_es_head
- ...
- backend myapp_ui
- server ui1 myapp:8080 check
- backend kibana
- mode http
- reqrep ^([^\ ]*\ /)logs[/]?(.*) \1\2
- reqrep ^([^\ ]*\ /)kibana[/]?(.*) \1\2
- server kibana kibana:5601 check
- And here's an excerpt from my docker-compose.yml file:
- haproxy:
- image: < personal repo >
- restart: always
- links:
- - myapp
- - kibana
- - es_head
- volumes:
- - ./docker/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
- ports:
- - "80:80"
- kibana:
- image: < personal repo >
- ports:
- - "5601:5601"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement