Skip to content

Commit 9c718cb

Browse files
paskalumputun
authored andcommitted
clarify SharedSecret usage by comment
It's not used aside from `server` but it was decided to keep it in place for backwards compatibility in PR #1544.
1 parent 02de92a commit 9c718cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/app/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ type Opts struct {
2323
CleanupCmd cmd.CleanupCommand `command:"cleanup"`
2424
RemapCmd cmd.RemapCommand `command:"remap"`
2525

26-
RemarkURL string `long:"url" env:"REMARK_URL" required:"true" description:"url to remark"`
26+
RemarkURL string `long:"url" env:"REMARK_URL" required:"true" description:"url to remark"`
27+
// SharedSecret is only used in server command, but defined for all commands for historical reasons
2728
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"`
2829

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

0 commit comments

Comments
 (0)