mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-08 14:10:05 +00:00
Added env reader for parameters
This commit is contained in:
parent
25167b412b
commit
1c71fc53c0
1 changed files with 3 additions and 3 deletions
|
@ -11,10 +11,10 @@ type config struct {
|
|||
PasswordSalt string `env:"passwordSalt" flag:"password-salt" description:"A random unique salt for encrypting the passwords"`
|
||||
UsernameSalt string `env:"usernameSalt" flag:"username-salt" description:"A random unique salt for encrypting the usernames"`
|
||||
Storage string `env:"storage" flag:"storage" default:"local:///./data" description:"Configuration for storage adapter (see README.md)"`
|
||||
Listen string `flag:"listen" default:":3000" description:"IP and port to listen on"`
|
||||
Listen string `flag:"listen" env:"listen" default:":3000" description:"IP and port to listen on"`
|
||||
|
||||
CookieSigningKey string `flag:"cookie-authkey" description:"Key used to authenticate the session"`
|
||||
CookieEncryptKey string `flag:"cookie-encryptkey" description:"Key used to encrypt the session"`
|
||||
CookieSigningKey string `flag:"cookie-authkey" env:"authkey" description:"Key used to authenticate the session"`
|
||||
CookieEncryptKey string `flag:"cookie-encryptkey" env:"encryptkey" description:"Key used to encrypt the session"`
|
||||
|
||||
VersionAndQuit bool `flag:"version" default:"false" description:"Show version and quit"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue