mirror of
https://github.com/netbirdio/dashboard.git
synced 2026-01-26 01:21:04 +00:00
Cleans up config.json providing generic OIDC properties. This allows for using other IDP providers besides Auth0. The change is backward compatible with the previous versions.
18 lines
639 B
Bash
Executable File
18 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
|
|
MGMT_PORT=$1
|
|
|
|
npm run build
|
|
docker build -f docker/Dockerfile -t netbird/dashboard-local:latest .
|
|
|
|
docker rm -f netbird-dashboard
|
|
docker run -d --name netbird-dashboard \
|
|
-p 3000:80 -p 443:443 \
|
|
-e AUTH_AUDIENCE=http://localhost:3000/ \
|
|
-e AUTH_AUTHORITY=https://netbird-localdev.eu.auth0.com \
|
|
-e AUTH_CLIENT_ID=kBRMAOqIZ7hvpVCaypQLCJvTzkYYIXVt \
|
|
-e USE_AUTH0=true \
|
|
-e AUTH_SUPPORTED_SCOPES='openid profile email api offline_access email_verified' \
|
|
-e NETBIRD_MGMT_API_ENDPOINT=http://localhost:$MGMT_PORT \
|
|
-e NETBIRD_MGMT_GRPC_API_ENDPOINT=http://localhost:$MGMT_PORT \
|
|
netbird/dashboard-local:latest |