warp-proxy/entrypoint.sh

15 lines
284 B
Bash
Raw Normal View History

2021-06-19 20:39:18 +00:00
#!/bin/bash
(
2021-06-19 21:52:29 +00:00
while ! warp-cli --accept-tos register; do
2021-06-19 20:39:18 +00:00
sleep 1
>&2 echo "Awaiting warp-svc become online..."
done
2021-06-19 21:52:29 +00:00
warp-cli --accept-tos set-mode proxy
warp-cli --accept-tos set-proxy-port 40001
warp-cli --accept-tos connect
2021-06-19 21:39:58 +00:00
haproxy -f /etc/haproxy/haproxy.cfg
2021-06-19 20:39:18 +00:00
) &
exec warp-svc