preram48 / sonarr-trakt-tv

Trakt TV list monitor for Sonarr
46 stars 8 forks source link

cannot use base url #2

Open azzuron opened 6 years ago

azzuron commented 6 years ago

When using reverse proxy you cannot seemingly connect the sonnartrakttv to sonar because it does not account for the baseurl. ie /sonarr/ which goes on the end of the url: http://127.0.0.1:8989/sonarr/

At least i think that is what is going on.

azzuron commented 6 years ago

I think for example a change here:

let response = await requestify.post(http://${settings.hostname}:${settings.port}**/**api/series?apikey=${settings.apiKey}, series);

metaMMA commented 6 years ago

As a temporary fix, it might be possible to get this working by replacing the port "8989" with the port needed for the reverse proxy + the directory. For example, lets say that the reverse proxy is running on port "1440", so sonarr is found at "http://IP_ADDRESS:1440/sonarr". In the settings, try replacing "8989" with "1440/sonarr". I'm not sure if this will work, but until a solution is pushed, this could help.

azzuron commented 6 years ago

Huh surprised i did not try that. but yes that does get around it for the moment. Thanks.