relaytester-test.sh raw

   1  #!/usr/bin/env bash
   2  ## relay-tester must be installed
   3  if ! command -v "relay-tester" &> /dev/null; then
   4      echo "relay-tester is not installed."
   5      echo "run this command to install:"
   6      echo
   7      echo "./scripts/relaytester-install.sh"
   8      exit
   9  fi
  10  rm -rf /tmp/orlytest
  11  export ORLY_LOG_LEVEL=trace
  12  export ORLY_LOG_TO_STDOUT=true
  13  export ORLY_LISTEN=127.0.0.1
  14  export ORLY_PORT=3334
  15  export ORLY_IP_WHITELIST=127.0.0
  16  export ORLY_ADMINS=6d9b216ec1dc329ca43c56634e0dba6aaaf3d45ab878bdf4fa910c7117db0bfa,c284f03a874668eded145490e436b87f1a1fc565cf320e7dea93a7e96e3629d7
  17  export ORLY_ACL_MODE=none
  18  export ORLY_DATA_DIR=/tmp/orlytest
  19  go run . &
  20  sleep 5
  21  relay-tester ws://127.0.0.1:3334 nsec12l4072hvvyjpmkyjtdxn48xf8qj299zw60u7ddg58s2aphv3rpjqtg0tvr nsec1syvtjgqauyeezgrev5nqrp36d87apjk87043tgu2usgv8umyy6wq4yl6tu
  22  killall next.orly.dev
  23  rm -rf /tmp/orlytest
  24