Refactor bookmarks ssl params

This commit is contained in:
Dan Sosedoff
2022-11-23 16:21:30 -06:00
parent 84bf1f091b
commit dd1fb90355
5 changed files with 48 additions and 48 deletions

View File

@@ -24,10 +24,10 @@ type Options struct {
User string `long:"user" description:"Database user"`
Pass string `long:"pass" description:"Password for user"`
DbName string `long:"db" description:"Database name"`
Ssl string `long:"ssl" description:"SSL mode"`
SslRootCert string `long:"ssl-rootcert" description:"SSL certificate authority file"`
SslCert string `long:"ssl-cert" description:"SSL client certificate file"`
SslKey string `long:"ssl-key" description:"SSL client certificate key file"`
SSLMode string `long:"ssl" description:"SSL mode"`
SSLRootCert string `long:"ssl-rootcert" description:"SSL certificate authority file"`
SSLCert string `long:"ssl-cert" description:"SSL client certificate file"`
SSLKey string `long:"ssl-key" description:"SSL client certificate key file"`
HTTPHost string `long:"bind" description:"HTTP server host" default:"localhost"`
HTTPPort uint `long:"listen" description:"HTTP server listen port" default:"8081"`
AuthUser string `long:"auth-user" description:"HTTP basic auth user"`
@@ -96,7 +96,7 @@ func ParseOptions(args []string) (Options, error) {
opts.User = ""
opts.Pass = ""
opts.DbName = ""
opts.Ssl = ""
opts.SSLMode = ""
}
if opts.Prefix != "" && !strings.Contains(opts.Prefix, "/") {