Skip to content

Assumes endpoint is '/' #78

Description

@mozai

What I tried:

  • set up nginx with proxypass so it can handle the SSL certs, but did not use '/' as the location
    # --- meleeman's sync sometimes in a docker container
    location /sync/ {
      proxy_set_header Host $http_host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_pass http://127.0.0.1:9623/ ;  # ending slash is important!
    }
    
  • started in a docker container
    docker run -it --publish "9623:3000"  \
    --volume "${mediadir}:/home/node/node_modules/sync/public/media" \
    --env "URL=https://${hostname}/sync/media/" \
    wetfish-sync:latest  -- "--m3u=public/media/playlist.m3u"
    

What I expected:

  • the show at https://hostname/sync/

What I got:

  • got the HTML for the player page, but it appears blank
  • '404 Not Found' errors for things like /style.css, /vue.js, /socket.io.js and more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions