|
|
|
|
@ -75,7 +75,7 @@ func serve(cmd *cobra.Command, args []string) error {
|
|
|
|
|
}{ |
|
|
|
|
{c.Issuer == "", "no issuer specified in config file"}, |
|
|
|
|
{!c.EnablePasswordDB && len(c.StaticPasswords) != 0, "cannot specify static passwords without enabling password db"}, |
|
|
|
|
{c.Storage.Config == nil, "no storage suppied in config file"}, |
|
|
|
|
{c.Storage.Config == nil, "no storage supplied in config file"}, |
|
|
|
|
{c.Web.HTTP == "" && c.Web.HTTPS == "", "must supply a HTTP/HTTPS address to listen on"}, |
|
|
|
|
{c.Web.HTTPS != "" && c.Web.TLSCert == "", "no cert specified for HTTPS"}, |
|
|
|
|
{c.Web.HTTPS != "" && c.Web.TLSKey == "", "no private key specified for HTTPS"}, |
|
|
|
|
|