You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
386 B

  1. #!/bin/sh
  2. if [[ -f "$PASSWORD_FILE" ]]; then
  3. PASSWORD=$(cat "$PASSWORD_FILE")
  4. fi
  5. if [[ -f "/var/run/secrets/$PASSWORD_SECRET" ]]; then
  6. PASSWORD=$(cat "/var/run/secrets/$PASSWORD_SECRET")
  7. fi
  8. exec ss-server \
  9. -s $SERVER_ADDR \
  10. -p $SERVER_PORT \
  11. -k ${PASSWORD:-$(hostname)} \
  12. -m $METHOD \
  13. -t $TIMEOUT \
  14. -d $DNS_ADDRS \
  15. -u \
  16. $ARGS