Yooooomi / your_spotify

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

cannot share any page other than home #310

Closed ohitstom closed 10 months ago

ohitstom commented 10 months ago

https://spotify.redacted.xyz/all?gname=All&token=d9858b0f-7a57-423f-9499-5fdba1dfc6b8 image

removing /all seems to work but takes me to the home page, if its any help im using a reverse proxy and these are my environment variables:

CLIENT_ENDPOINT=https://spotify.redacted.xyz
API_ENDPOINT=https://spotify-api.redacted.xyz
SPOTIFY_PUBLIC=redacted
SPOTIFY_SECRET=redacted
MONGO_ENDPOINT=mongodb://127.0.0.1:27017/your_spotify
CORS=https://redacted.xyz,https://spotify.redacted.xyz,https://spotify-api.redacted.xyz
redacted.xyz{
    reverse_proxy 127.0.0.1:8010
    tls "D:\Program Files\Caddy\cert.pem" "D:\Program Files\Caddy\key.pem"
}

spotify.redacted.xyz{
    reverse_proxy 127.0.0.1:3000
    tls "D:\Program Files\Caddy\cert.pem" "D:\Program Files\Caddy\key.pem"
}

spotify-api.redacted.xyz {
    reverse_proxy 127.0.0.1:2999
    tls "D:\Program Files\Caddy\cert.pem" "D:\Program Files\Caddy\key.pem"
}

startup:

cd src/server && C:\Users\tomfi\AppData\Roaming\npm\yarn migrate && node lib/bin/www.js
cd src/client && C:\ProgramData\chocolatey\bin\serve.exe -p 3000 -d build

i think this is an issue with serve, if i run yarn start (the dev env) this is not an issue, is there some serve flag im missing

ohitstom commented 10 months ago

image fixed by making my own serve alternative