#Caddyfile
:7070
rewrite /api /api/
handle /api/* {
  uri strip_prefix /api
  #rewrite * /socket.io{path}
  reverse_proxy * {
    header_up Host {host}
    header_up X-Real-IP {remote}

	to http://battleship_api_1:8000
	to http://battleship_api_2:8000

	lb_policy cookie mycookie
	health_uri /healthcheck
    health_interval 2s
    health_timeout 5s
    health_status 200
  }
}

reverse_proxy * {
  to http://battleship_web_1
}
