Beatbump icon indicating copy to clipboard operation
Beatbump copied to clipboard

403 loop using yt-hls-rewriter audio proxy

Open Smig0l opened this issue 3 years ago • 4 comments

image

Tried clearing site data and switching hls/http. Browser Chrome Desktop. Probably geo-location? (Europe)

Smig0l avatar Sep 23 '22 14:09 Smig0l

So I’m not entirely sure what caused this to happen (my best guess would be that it’s rejecting because the proxy’s IP is triggering geo restrictions), but good news potentially is that I managed to finally get an Oracle Cloud account, so I’m going to be migrating the proxy to that.

Once the proxy server gets moved to Oracle Cloud I should be able to tackle some of the geo-restriction issues that come with audio playback

snuffyDev avatar Oct 01 '22 13:10 snuffyDev

The proxy is this https://github.com/snuffyDev/Beatbump/tree/master/packages/proxy-server/ part? Can you add minimal README.md to deploy it? There is deno and rust, rust compile pretty straight forward i guess? But not really sure about deno part. Thanks.

martadinata666 avatar Oct 01 '22 13:10 martadinata666

The proxy is this https://github.com/snuffyDev/Beatbump/tree/master/packages/proxy-server/ part? Can you add minimal README.md to deploy it? There is deno and rust, rust compile pretty straight forward i guess? But not really sure about deno part. Thanks.

The Rust proxy is unstable currently, the default one that Beatbump uses is the Deno proxy. There is a Dockerfile in the Deno folder, as well as pre compiled binaries in the ‘bin’.

If you want to run the Deno proxy straight without Docker, all that is required is to install Deno (https://deno.land/#installation) and compile it or run it directly using the command line.

Edit

To compile the Deno proxy yourself, in your terminal navigate to /packages/proxy-server/deno in your local Beatbump folder, then depending on your OS run one of these commands:

Windows: deno compile --target x86_64-pc-windows-msvc --allow-net --lock=lock.json --output bin\proxy-x86_64-windows index.ts

Linux: deno compile --target x86_64-unknown-linux-gnu --allow-net --lock=lock.json --output bin\proxy-x86_64-linux index.ts

After it finishes compiling, the binary will be located in ./bin

snuffyDev avatar Oct 02 '22 23:10 snuffyDev

Thanks for the guide i use the dockefile method and it works, So after test and try a bit, few questions.

  1. When deploying using docker we dont need the binary?
  2. Can we set proxy to something like http://localhost:3001 as usually when docker deployed app coupling together in single network we can use something like "http://container-name:3001"

martadinata666 avatar Oct 03 '22 03:10 martadinata666