Skip to content

Commit

Permalink
clarify SharedSecret usage by comment
Browse files Browse the repository at this point in the history
It's not used aside from `server` but it was decided to keep it in place
for backwards compatibility in PR #1544.
  • Loading branch information
paskal authored and umputun committed Jul 17, 2023
1 parent 02de92a commit 9c718cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ type Opts struct {
CleanupCmd cmd.CleanupCommand `command:"cleanup"`
RemapCmd cmd.RemapCommand `command:"remap"`

RemarkURL string `long:"url" env:"REMARK_URL" required:"true" description:"url to remark"`
RemarkURL string `long:"url" env:"REMARK_URL" required:"true" description:"url to remark"`
// SharedSecret is only used in server command, but defined for all commands for historical reasons
SharedSecret string `long:"secret" env:"SECRET" required:"true" description:"the shared secret key used to sign JWT, should be a random, long, hard-to-guess string"`

Dbg bool `long:"dbg" env:"DEBUG" description:"debug mode"`
Expand Down

0 comments on commit 9c718cb

Please sign in to comment.