Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stremio server not working if reversed proxy used #29

Open
alanmilinovic opened this issue Mar 10, 2024 · 1 comment
Open

Stremio server not working if reversed proxy used #29

alanmilinovic opened this issue Mar 10, 2024 · 1 comment

Comments

@alanmilinovic
Copy link

Hi, I am trying to make stremio work with reversed proxy, but stremio server just don't work, it seams that url is not correct.

<VirtualHost *:20530>
	<Location "/stremio/">
		ProxyPass http://localhost:7080/
		ProxyPassReverse http://localhost:7080/
	</Location>
	<Location "/stremioserver">
		ProxyPass http://localhost:11470
		ProxyPassReverse http://localhost:11470
	</Location>
</VirtualHost>

URL specified in stremio web:
with proxy: http://192.168.188.203:11470/
no proxy: http://192.168.188.203:20530/stremioserver/

This is the link for example that I am getting once the video starts when using directly (no proxy):
http://192.168.188.203:11470/571726bee423983ff34431f319209e48be784667/0/stats.json

and this is the link that I get if I use stremio server as proxy (404 error):
http://192.168.188.203:20530/571726bee423983ff34431f319209e48be784667/0/stats.json

This is how it should be correctly:
http://192.168.188.203:20530/stremioserver/571726bee423983ff34431f319209e48be784667/0/stats.json

If I test server by executing below line it is working fine:
http://192.168.188.203:20530/stremioserver/settings

Is it possible to configure base url for the server or something? Any idea, please.

@FuSan21
Copy link

FuSan21 commented Apr 5, 2024

posted a similar issue on the stremio-web. It can't properly handle path based url. This should be here, so closed previous one. More details:
Stremio/stremio-web#605

I think the server doesn't take the server url in web into account. Probably making the request based on host of server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants