Skip to content

Commit

Permalink
add back ask secret on server demo
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Oct 30, 2020
1 parent 3e4a811 commit 0819d62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"github.com/n0rad/go-erlog/errs"
"github.com/n0rad/go-erlog/logs"
_ "github.com/n0rad/go-erlog/register"
"github.com/n0rad/memguarded"
Expand Down Expand Up @@ -30,6 +31,11 @@ func execute() error {
ServerPem: "/etc/" + app + "/" + app + ".pem",
}

if err := config.Secret.AskSecret(true, "Secret"); err != nil {
return errs.WithE(err, "Failed ask secret")
}

logs.Info("Start")

return memguarded.StartServer(config)
}

0 comments on commit 0819d62

Please sign in to comment.