hedwiggggg / spotify-ripper-web

This repository aimed to create an easy-to-use web interface for the spotify-ripper.
MIT License
45 stars 10 forks source link

Cannot use proxy-pass #1

Closed giovi321 closed 4 years ago

giovi321 commented 5 years ago

Hi, I cannot access to the interface through apache2 reverse proxy pass, I get no errors but i just see a blank page. Any idea why or how to debug this? thanks!

hedwiggggg commented 5 years ago

woah man, no idea; Can you write down a minimal instruction so i can reproduce this error?

giovi321 commented 5 years ago

So I set up an Apache2 reverse proxy, as my spotify-ripper-web is running on a server and I access to it through a client. Basically any http request to the ip of the server is redirected to the ip:port of the spotify-ripper-web instance. However, I just see a blank page and no content at all

giovi321 commented 4 years ago

@hedwiggggg any chance to change the base url of the webapp? I think this is the issue.

hedwiggggg commented 4 years ago

https://github.com/hedwiggggg/spotify-ripper-web/blob/master/spotify-ripper-web-backend/app.js#L64 https://github.com/hedwiggggg/spotify-ripper-web/blob/master/spotify-ripper-web-frontend/vue.config.js#L2

you mean this?

hedwiggggg commented 4 years ago

http://localhost:/web/

It kinda sounds like you forgot to add the /web to your url

giovi321 commented 4 years ago

So, quick update on this as you were very kind helping me :) tl;dr: if anybody wants to know how to change the base uri of the app, just modify the two files that @hedwiggggg pointed. I wanted to run this on a virtual server and proxy it using apache2 proxy-pass. I have been able to change the base uri of spotify-ripper-web (modifying the two files you pointed out), but I still couldn't figure out how to proxy the ws with apache (it is possible but I guess I'm just lazy). I just put a vpn on the virtual server and access to it through the vpn :)

hedwiggggg commented 4 years ago

yes it's possible by setting up a tcp rule for the ws port; but that's only theoretical, idk how it works with apache. But I guess there are a lot answers for that @google.