🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat: PORT env var can override configured port
Deluanac4aa1ebe290
diff --git a/conf/configuration.go b/conf/configuration.goindex 346f18236..2118de737 100644--- a/conf/configuration.go+++ b/conf/configuration.go@@ -84,6 +84,9 @@ func LoadFromFile(confFile string, skipFlags ...bool) {if Server.DbPath == "" {Server.DbPath = filepath.Join(Server.DataFolder, "navidrome.db")}+ if os.Getenv("PORT") != "" {+ Server.Port = os.Getenv("PORT")+ }log.SerLevelString(Server.LogLevel)log.Trace("Loaded configuration", "file", confFile, "config", fmt.Sprintf("%#v", Server))}