Closed Brulijam closed 1 year ago
Hello. Your setup seems fine to me. Maybe you should remove the trailing slashes at the end of your urls. You should also double check your proxy settings.
+1 Same issue here. I got no trailing slashes and am using cloudflare tunnel for forwarding the web and api ports.
Edit: It seems like the API_ENDPOINT is not set correctly in this case. It's always just localhost:8080 per default. :/
The server gives the correct log for setting the endpoint, but nevertheless in browser the variable is not set to this endpoint.
echo "Setting API Endpoint to '$API_ENDPOINT'" sed -i "s;__API_ENDPOINT__;$API_ENDPOINT;g" "$VAR_PATH/variables.js"
I've got absolutely no clue about web development but I'll look further... xD
Edit2: Inside the container the variables.js is also set correctly. Why is it not translated into the browser then....
I just ran into the same issue. My browser cached the wrong API endpoint from a previous time (I went through a couple edit the compose file and restart the containers cycles before I had everything set up correctly). Using a different browser allowed me to log in with Spotify as expected. I'd suggest trying a different browser or a private window or clearing the browser cache explicitly.
Clearing browser cache, removing trailing "/" and using a seperate subdomain as API-Endpoint (spotify-api.domain.com instead of spotify.domain.com/api) fixed the issue.
Hi, I am using this docker compose setup
and nginx proxy manager where
spotify.domain.com
proxies to172.18.0.1:3000
andspotify.domain.com/api
to172.18.0.1:8080
.The redirect uri in the spotify app dashboard is set to
https://spotify.domain.com/api/oauth/spotify/callback
.When opening
spotify.domain.com
I get the ErrorThe web application can't communicate with the server
and the login button redirects tohttp://localhost:8884/oauth/spotify
.Not sure what I am missing.