#!/bin/bash

CLINIC_ACTIVITY_TOKEN="eyJrIjoiNkwyaHVGT2lnUWdMNDFtWCIsInUiOjE5LCJpZCI6MH0=" \
go run ./cmd/server/main.go \
  --zap-devel=false \
  --ghapp-private-key-file=./local/ghapp-private-key.pem \
  --ghapp-app-id=340871 \
  --ghapp-install-id=38097753 \
  --jump-endpoint=https://ops-dev.tidbcloud.com/configchange \
  --cluster-ns-prefix=nightly-ms- \
  --api-bind-address=:9082 \
  --health-probe-bind-address=:9091 \
  --metrics-bind-address=:9080 \
  --config-revision-ttl=168h0m0s \
  --config-path="./local/config.yaml"


#go run ./cmd/server/main.go \
#  --zap-devel=false \
#  --activity \
#  --activity-config=./local/activity.yaml \
#  --ghapp-private-key-file=./local/ghapp-private-key.pem \
#  --ghapp-app-id=340871 \
#  --ghapp-install-id=38097753 \
#  --jump-endpoint=https://ops-dev.tidbcloud.com/configchange \
#  --cluster-ns-prefix=nightly-ms- \
#  --api-bind-address=:8082 \
#  --config-revision-ttl=168h0m0s
