Closed hoiber closed 8 months ago
Hi,
Ive been looking at your config and trying to figure out whats wrong with it. So far everything looks like its supposed to work as intended. Looking at other cloud-flare issues and domain issues its often caused by cache. So maybe you can clear you cache or try a different browser.
In my compose config i did include CORS: all not sure if this is going to fix your issue though.
I have the same problem with Cloudflare.
Hi,
Ive been looking at your config and trying to figure out whats wrong with it. So far everything looks like its supposed to work as intended. Looking at other cloud-flare issues and domain issues its often caused by cache. So maybe you can clear you cache or try a different browser.
In my compose config i did include CORS: all not sure if this is going to fix your issue though.
Thanks, it was indeed the stupid cache!
I have the same problem with Cloudflare.
Hi, just saying u got the same output, but post none of your configs or what U have tried to solve it isn't going to get you any further.
Show us your docker compose and cloud flare tunnels settings. Or try to clear your cache or try a different browser.
I got Cloudflare Tunnels working with the following Compose file.
services:
server:
image: yooooomi/your_spotify_server
depends_on:
- mongo
links:
- mongo
environment:
API_ENDPOINT: [server URL]
CLIENT_ENDPOINT: [client URL]
SPOTIFY_PUBLIC: [redacted]
SPOTIFY_SECRET: [redacted]
restart: always
mongo:
image: mongo:6
volumes:
- ./db:/data/db
web-client:
image: yooooomi/your_spotify_client
depends_on:
- server
environment:
API_ENDPOINT: [client URL]
restart: always
server-tunnel:
image: cloudflare/cloudflared:latest
depends_on:
- server
environment:
TZ: [timezone]
restart: unless-stopped
command: tunnel --no-autoupdate run --token [server token]
web-tunnel:
image: cloudflare/cloudflared:latest
depends_on:
- web-client
environment:
TZ: [timezone]
restart: unless-stopped
command: tunnel --no-autoupdate run --token [client token]
Any update on this?
Any update on this?
I found that the above docker-compose worked well for me. The only thing I'd add is that you need to define the two tunnels in the zero trust dashboard. Here's how:
Hope that helps!
-JD
Hey, has anyone had any success using a cloudflare tunnel? Cant seem to get it to work.
Have tried setting the API_ENDPOINT: http://serv-spotify.somedomain.xo as recommended in similar issues with reverse proxies (I know cloudflare is different but thought it was worth a go)
Main issue is the web reports it cant find the server.
This could be completely not doable but thought someone might have got it working.
Config Below:
version: "3"
services: server: image: yooooomi/your_spotify_server restart: always ports:
./your_spotify_db:/data/db
web: image: yooooomi/your_spotify_client restart: always ports:
"3090:3000" environment: API_ENDPOINT: https://serv-spotify.somedomain.xo
tunnel: container_name: cloudflared-tunnel image: cloudflare/cloudflared restart: unless-stopped command: tunnel run environment:
Cloudflare Settings