update ENVs

This commit is contained in:
AJ ONeal 2020-07-06 09:59:05 +00:00
parent 678d7b5e11
commit c951ce1254
1 changed files with 5 additions and 2 deletions

View File

@ -3,17 +3,20 @@
set -e set -e
set -u set -u
go generate -mod=vendor ./... #go generate -mod=vendor ./...
go build -mod=vendor -o telebit cmd/telebit/*.go go build -mod=vendor -o telebit cmd/telebit/*.go
source .env source .env
ADMIN_HOSTNAME=${ADMIN_HOSTNAME:-"devices.example.com"} ADMIN_HOSTNAME=${ADMIN_HOSTNAME:-"devices.example.com"}
AUTH_BASEURL=${AUTH_BASEURL:-"https://devices.example.com"} AUTH_BASEURL=${AUTH_BASEURL:-"https://devices.example.com"}
AUTH_URL=${AUTH_URL:-"$AUTH_BASEURL/api"}
SECRET=${SECRET:-"xxxxxxxxxxxxxxxx"} SECRET=${SECRET:-"xxxxxxxxxxxxxxxx"}
ACME_EMAIL="${ACME_EMAIL:-}"
./telebit --acme-agree=true \ ./telebit --acme-agree=true \
--admin-hostname $ADMIN_HOSTNAME \ --admin-hostname $ADMIN_HOSTNAME \
--auth-url $AUTH_BASEURL/api \ --auth-url $AUTH_URL/api \
--acme-email "$ACME_EMAIL" \
--secret "$SECRET" \ --secret "$SECRET" \
--listen 3020,3030 --listen 3020,3030