telebit/mplexer/mgmt-prereg.sh

10 lines
320 B
Bash
Raw Normal View History

TOKEN=$(go run cmd/signjwt/*.go)
echo "TOKEN: $TOKEN"
my_shared="k7nsLSwNKbOeBhDFpbhwGHv"
my_client="rooted"
curl -X POST http://roottest.duckdns.org:3010/api/devices \
-H "Authorization: Bearer ${TOKEN}" \
-H "Content-Type: application/json" \
-d '{ "slug": "'$my_client'", "shared_key": "'$my_shared'" }'