Add flag to disable startup banner

This commit is contained in:
Deluan
2020-01-15 17:48:46 -05:00
parent be377846a8
commit ca2c897340
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ type sonic struct {
LogLevel string `default:"info"`
DevDisableAuthentication bool `default:"false"`
DevDisableFileCheck bool `default:"false"`
DevDisableBanner bool `default:"false"`
}
var Sonic *sonic
+3 -1
View File
@@ -24,7 +24,9 @@ type Server struct {
func New(importer *scanner_legacy.Importer) *Server {
a := &Server{Importer: importer}
showBanner(Version)
if !conf.Sonic.DevDisableBanner {
showBanner(Version)
}
initMimeTypes()
a.initRoutes()
a.initImporter()