Skip to content

Commit

Permalink
Fix haproxy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 30, 2022
1 parent 4586686 commit 209dc0c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions haproxy/haproxy.cfg.tmpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
global
log /dev/log local2
chroot /tmp
pidfile /run/haproxy.pid
maxconn 4000
max-spread-checks 500 #ms between heathchecks of different services
tune.ssl.default-dh-param 2048 # remove warning

user nobody
group nogroup


# allows the service IP changes to be detected (when a container is restarted, for example)
resolvers dns
Expand Down Expand Up @@ -52,19 +47,22 @@ defaults


backend geoportal
option httpchk GET ${VISIBLE_ENTRY_POINT} HTTP/1.0\r\nUser-Agent:\ healthcheck
option httpchk
http-check send meth GET uri ${VISIBLE_ENTRY_POINT}
http-check expect status 200
server linked geoportal:8080 resolvers dns #check


backend tilecloudchain
option httpchk GET ${VISIBLE_ENTRY_POINT}tiles/c2c/health_check HTTP/1.0\r\nUser-Agent:\ healthcheck
option httpchk
http-check send meth GET uri ${VISIBLE_ENTRY_POINT}tiles/c2c/health_check
http-check expect status 200
server linked tilecloudchain:8080 resolvers dns #check


backend custom
option httpchk GET ${VISIBLE_ENTRY_POINT}custom/ HTTP/1.0\r\nUser-Agent:\ healthcheck
option httpchk
http-check send meth GET uri ${VISIBLE_ENTRY_POINT}custom
http-check expect status 200
server linked custom:8080 resolvers dns #check

Expand Down

0 comments on commit 209dc0c

Please sign in to comment.