diff --git a/cmd/soundtouch-service/main.go b/cmd/soundtouch-service/main.go index de278f2..21cb152 100644 --- a/cmd/soundtouch-service/main.go +++ b/cmd/soundtouch-service/main.go @@ -220,7 +220,6 @@ func main() { server.SetDNSSettings(persisted.DNSEnabled, persisted.DNSUpstream, persisted.DNSBindAddr) server.SetSpotifyConfig(config.spotifyClientID, config.spotifyClientSecret, config.spotifyRedirectURI) server.SetMgmtConfig(config.mgmtUsername, config.mgmtPassword) - server.SetBaseURL(config.baseURL) if config.spotifyClientID != "" { spotifyService := spotify.NewSpotifyService( @@ -357,7 +356,6 @@ type serviceConfig struct { spotifyRedirectURI string mgmtUsername string mgmtPassword string - baseURL string } func loadConfig(c *cli.Context) serviceConfig { @@ -421,7 +419,6 @@ func loadConfig(c *cli.Context) serviceConfig { spotifyRedirectURI := c.String("spotify-redirect-uri") mgmtUsername := c.String("mgmt-username") mgmtPassword := c.String("mgmt-password") - baseURL := c.String("base-url") return serviceConfig{ port: port, @@ -446,7 +443,6 @@ func loadConfig(c *cli.Context) serviceConfig { spotifyRedirectURI: spotifyRedirectURI, mgmtUsername: mgmtUsername, mgmtPassword: mgmtPassword, - baseURL: baseURL, } } diff --git a/pkg/service/handlers/server.go b/pkg/service/handlers/server.go index 1c28d2e..b47078c 100644 --- a/pkg/service/handlers/server.go +++ b/pkg/service/handlers/server.go @@ -46,7 +46,6 @@ type Server struct { spotifyClientID string spotifyClientSecret string spotifyRedirectURI string - baseURL string spotifyService *spotify.Service } @@ -242,14 +241,6 @@ func (s *Server) SetMgmtConfig(username, password string) { s.mgmtPassword = password } -// SetBaseURL sets the external base URL for OAuth callbacks. -func (s *Server) SetBaseURL(baseURL string) { - s.mu.Lock() - defer s.mu.Unlock() - - s.baseURL = baseURL -} - // SetSpotifyService sets the Spotify OAuth service. func (s *Server) SetSpotifyService(ss *spotify.Service) { s.mu.Lock()