Add JWTSecret to config and flagset

This commit is contained in:
Benedikt Kulmann
2020-05-27 15:36:40 +02:00
parent a39bd39bac
commit f7cf214c08
2 changed files with 21 additions and 8 deletions
+7
View File
@@ -163,5 +163,12 @@ func ServerWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"SETTINGS_ROOT_MOUNT_PATH"},
Destination: &cfg.Storage.RootMountPath,
},
&cli.StringFlag{
Name: "jwt-secret",
Value: "Pive-Fumkiu4",
Usage: "Used to create JWT to talk to reva, should equal reva's jwt-secret",
EnvVars: []string{"SETTINGS_JWT_SECRET"},
Destination: &cfg.TokenManager.JWTSecret,
},
}
}