2
0

ispooge-proxy-dev.sh 370 B

1234567891011121314151617
  1. #!/bin/bash
  2. # starts an HTTP proxy that will be detected by the nginx
  3. # http/https proxy service.
  4. #
  5. # v1 - 2018-01-01
  6. HOSTNAME=v2.ispooge.com
  7. IP=192.168.1.11
  8. PORT=33080
  9. DOMAINS=$HOSTNAME
  10. IMAGE=tcp-proxy:2
  11. NAME="$HOSTNAME-proxy"
  12. docker run -d --restart always --name $NAME -e "BACKEND_HOST=$IP" -e "BACKEND_PORT=$PORT" -e "VIRTUAL_HOST=$DOMAINS" -h $HOSTNAME $IMAGE