gethomepage / homepage

A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations.
https://gethomepage.dev
GNU General Public License v3.0
18.44k stars 1.08k forks source link

Services Widget #41

Closed trackermb closed 2 years ago

trackermb commented 2 years ago

Hi having an issue with services widgets. When I test locally on 192. address I can hit sonar, Speedtest and rutorrent for example.

I was planning to use the local ip and port as I have authelia and is would then bypass it.

- Media Services:
    - ruTorrent:
       icon: rutorrent.png
       href: https://rutorrent.mydomain.com
       description: Torrent Client
       container: rutorrent
       widget:
          type: rutorrent
          url: http://192.168.1.10:8080
          username: false # optional, false if not used
          password: false # optional, false if not used
    - Sonarr:
       icon: sonarr.png
       href: https://sonarr.mydomain.com
       description: Series management
       container: sonarr
       widget:
          type: sonarr
          url: http://192.168.1.10:8989
          key: <api key>
    - Radarr:
       icon: radarr.png
       href: https://radarr.mydomain.com
       description: Movie manager
       container: radarr

But when I access it via domain address rutorrent pulls fine but sonarr and Speedtest just show api error

Any ideas why it can't access local ip when accessed in this way.

benphelps commented 2 years ago

Without seeing logs from the console, I would only be able to guess. It's often to do with CORS. I'll have some changes soon that will rework how service APIs are called, and hopefully it can fix a lot of those types of issues.

benphelps commented 2 years ago

You should give this another shot now :)

The latest change completely reworks how widget API calls are made, and I'm pretty sure it'll work just fine now for you.

benphelps commented 2 years ago

Go ahead and reopen if this doesn't solve your issue :)

github-actions[bot] commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns.