@@ -123,6 +123,17 @@ func (s *Server) verifyConfiguration(configuration *server.Configuration) error
s.conf.Logger.Warn("No url parameter specified in configuration; unless an url is elsewhere prepended in the QR, the IRMA client will not be able to connect")
@@ -118,6 +118,10 @@ using the corresponding "-file" flag.`
flags.String("client-tls-privkey-file","","path to TLS private key for IRMA app server")
flags.Lookup("tls-cert").Header="TLS configuration. Leave empty to disable TLS."
flags.String("email","","Email address of server admin, for incidental notifications such as breaking API changes")
flags.Bool("no-email",true,"Opt out of prodiding an email address with --email")
flags.Lookup("email").Header="Email address. You are encouraged to provide your email address, so you can be notified of important changes. See README for more info."
returnerrors.New("In production mode it is required to specify either an email address with the --email flag, or explicitly opting out with --no-email. See help or README for more info.")
}
ifviper.GetBool("no-email")&&conf.Email!=""{
returnerrors.New("--no-email cannot be combined with --email")
}
// Handle requestors
iflen(viper.GetStringMap("requestors"))>0{// First read config file