Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.82k stars 113 forks source link

Caddyv2 reverse proxy redirect issues #230

Closed MHunton closed 1 year ago

MHunton commented 1 year ago

I'm not sure if I have done something wrong as I'm quite new to caddy and selfhosting in general but when I load the login screen I get an error message saying "cannot connect to server", when I click login it redirects me and says "this page isn't working". Apologies if this is a simple issue and my own fault. Thanks in advance.

below is my docker compose and caddy v2 settings

version: "3"

services: server: image: yooooomi/your_spotify_server restart: always ports:


This is in my caddy file:

spotify.mydomain.com { reverse_proxy http://localhost:3000 }

spotiserv.mydomain.com { reverse_proxy http://localhost:888 }

Yooooomi commented 1 year ago

Hello. You cannot change the inner port of the container. In the server, your ports definition should be 888:8080

MHunton commented 1 year ago

Hello. You cannot change the inner port of the container. In the server, your ports definition should be 888:8080

Thank you so much, I knew it would be something I'd done wrong, I also realised I had my API URL entered wrong but I sorted that myself, it's working perfectly now!