🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Add flag to disable startup banner
Deluanca2c8973407b
diff --git a/conf/configuration.go b/conf/configuration.goindex c82af17a0..11e26bd28 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -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 *sonicdiff --git a/server/app.go b/server/app.goindex 8cff24d0c..d8408e5f7 100644--- a/server/app.go+++ b/server/app.go@@ -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()