added option to use proxy for oauth
This commit is contained in:
@@ -12,6 +12,8 @@ type args struct {
|
||||
PlaylistID string `arg:"--playlist-id,required,env:SPOTIFY_PLAYLIST_ID" help:"Just the id" placeholder:"SPOTIFY_PLAYLIST_ID"`
|
||||
RedirectURL string `arg:"--redirect-url,required,env:SPOTIFY_REDIRECT_URL" help:"Must be the same as in the Spotify developer dashboard." placeholder:"SPOTIFY_REDIRECT_URL"`
|
||||
ListenAddr string `arg:"--listen-addr,env:LISTEN_ADDR" help:"Address to listen on" placeholder:"LISTEN_ADDR" default:":3000"`
|
||||
OAuthProxyURL string `arg:"--oauth-proxy-url,env:OAUTH_PROXY_URL" help:"URL of the oauth proxy" placeholder:"OAUTH_PROXY_URL"`
|
||||
OAuthProxyAPIKey string `arg:"--oauth-proxy-api-key,env:OAUTH_PROXY_API_KEY" help:"API key for the oauth proxy" placeholder:"OAUTH_PROXY_API_KEY"`
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -25,5 +27,7 @@ func main() {
|
||||
PlaylistID: args.PlaylistID,
|
||||
RedirectURL: args.RedirectURL,
|
||||
ListenAddr: args.ListenAddr,
|
||||
OAuthProxyURL: args.OAuthProxyURL,
|
||||
OAuthProxyAPIKey: args.OAuthProxyAPIKey,
|
||||
}).Start()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user