telebit/examples/run-as-client.sh

19 lines
442 B
Bash
Raw Normal View History

2020-06-29 08:43:46 +00:00
#!/bin/bash
set -e
set -u
go generate -mod=vendor ./...
go build -mod=vendor -o telebit cmd/telebit/*.go
source .env
ACME_RELAY_URL=${ACME_RELAY_URL:-"https://devices.examples.com"}
AUTH_URL=${AUTH_URL:-"https://devices.examples.com"}
2020-06-29 08:43:46 +00:00
CLIENT_SECRET=${CLIENT_SECRET:-"yyyyyyyyyyyyyyyy"}
./telebit --acme-agree=true \
--acme-relay-url $ACME_RELAY_URL/api \
--auth-url $AUTH_URL/api \
2020-06-29 08:43:46 +00:00
--app-id test-id --secret "$CLIENT_SECRET"