run_stunnel.sh 423 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. if [ -z "$1" ]; then
  4. echo "Usage: $0 /path/to/server.pem"
  5. exit 1
  6. fi
  7. PEM_PATH="$1"
  8. docker run --rm -it \
  9. --add-host=host.docker.internal:host-gateway \
  10. --add-host=open-oscar-server:host-gateway \
  11. -v "$PEM_PATH:/etc/stunnel/certs/server.pem:ro" \
  12. -v "$(pwd)/config/ssl/stunnel.conf:/etc/stunnel/stunnel.conf:ro" \
  13. -p 443:443 \
  14. -p 5193:5193 \
  15. ras-stunnel:5.75-openssl-1.0.2u stunnel.conf