hexdecimal16 / stremio-rating-addon

Adds IMDb, Rotten Tomatoes, and Metacritic ratings to posters in Stremio.
https://x0pjhyek8zk6.share.zrok.io/
22 stars 5 forks source link

Add on not accessible via web/reverse proxy #2

Open BowChika opened 3 weeks ago

BowChika commented 3 weeks ago

Hi. I self-host all stremio components; stremio-web, stremio-server and now stremio-rating-addon. All 3 components are on the same server. The server and this add-on is behind reverse proxy access through stremioratingaddon.homedomain.com. When I access stremio-web, I can see the requests hitting the stremio-rating-addon container but the ratings dont show up on the web. Same if I try and access via Stremio-Desktop (which also connects to the same self-host stremio-rating-addon via the reverse proxy). I believe its because the addon is hardcoded to server on localhost:3000 or 127.0.0.1:3000?

Request: Can the add-on/npm be configured to use a self-hosting URL and then the add-on can serve the ratings to any channel (stremio-web, desktop app, etc)?

hexdecimal16 commented 3 weeks ago

We can add url to the env file and then pick up from their. Can you create a PR?

BowChika commented 3 weeks ago

Thanks for the quick response. I don’t know how to create a PR. Will look it up and do that later today.

hexdecimal16 commented 3 weeks ago

It's very easy: Fork this repository first then:

  1. Git clone your fork using git clone .
  2. Git checkout to a meaningful branch name using git checkout -b .
  3. Make changes to the code.
  4. Git add the changed files using git add ..
  5. Git commit your changes using git commit -m "Your commit message".
  6. Push your changes to your fork using git push origin .
  7. Go to the original repository on GitHub and create a Pull Request from your fork/branch.

Let me know if you need any help with these steps!

BowChika commented 3 weeks ago

Apologies, I dont know how to code this. So I'll leave this here as a suggestion. I see another issue (accessing the add-on via Android TV) which is likely simlar to this. Idea is to be able to selfhost the add-on on a central server and then use various devices around the home (mobile via stremio-web, TV via FireStick/AndroidTV, desktop via stremio-desktop) to get ratings from the same central add-on. It would be great if that can be implemented. Thanks!

hexdecimal16 commented 3 weeks ago

Android TV app for stremio is not open source. So, it's very hard to know what is going wrong with it.