From 9c8ad2d09d2747fb530f659357323b05a4e795d3 Mon Sep 17 00:00:00 2001 From: Paul Lorenz Date: Thu, 29 Jul 2021 09:27:40 -0400 Subject: [PATCH] Fix doc and remove bad char from config file --- doc/002-local-dev.md | 17 ++++++++++++++--- etc/edge.router.yml | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/doc/002-local-dev.md b/doc/002-local-dev.md index 10e6b827b..a86ec8491 100644 --- a/doc/002-local-dev.md +++ b/doc/002-local-dev.md @@ -20,9 +20,20 @@ This guide can be used to run all of the Ziti applications via command line or i 2. Change into the `ziti` dirrectory - `cd ziti` 3. Build - - `go build ./ziti-controller` - - `go build ./ziti-router` - - `go build ./ziti/cmd/ziti` + - `go install ./...` + +### Initializing the Controller +Before you can run the controller you have to initialize it's database with an administrative user. Assuming you want to run with the edge enabled, this can be done using as follows: + +```bash +ziti-controller edge init etc/ctrl.with.edge.yml -u -p +``` + +Example: + +```bash +ziti-controller edge init etc/ctrl.with.edge.yml -u admin -p o93wjh5n +``` ### Starting the Controller diff --git a/etc/edge.router.yml b/etc/edge.router.yml index f426aa7ea..6f559dab4 100644 --- a/etc/edge.router.yml +++ b/etc/edge.router.yml @@ -135,4 +135,4 @@ web: # Specifies an API to bind to this webListener. Built-in APIs are # - health-checks - binding: health-checks -~ +