PetrK39 / HydrusSlideshow

A simple Kodi-like slideshow from your Hydrus instance that can be used as screensaver
1 stars 0 forks source link

ClientAPI on subpath #1

Open Wyrrrd opened 8 months ago

Wyrrrd commented 8 months ago

When starting the app with an API url on a subpath (e.g. https://hydrus.example.com/clientapi/) via reverse proxy, I get a generic error message.

Hydrus error
[HTML dump of https://hydrus.example.com/ without subpath]

Other Hydrus companion apps and scripts work with this URL, so I suspect no config mistake in my reverse proxy. At a quick glance I cannot see any obvious mistakes in your code, or I am not used to C# enough to spot one :(

PetrK39 commented 8 months ago

I've never used Hydrus outside of a local network. Can you provide more info about the error and the software used?

Wyrrrd commented 7 months ago

Hydrus is running in docker, I am using the prebuilt image at ghcr.io/hydrusnetwork/hydrus.

I am using traefik as reverse proxy, the relevant config is:

traefik.http.routers.hyd-api.rule=Host(`hydrus.example.com`) && PathPrefix(`/clientapi`)
traefik.http.services.hyd-api.loadbalancer.server.port=45869

(This causes hydrus.example.com/clientapi to internally redirect to localhost:45869 on the docker container.)

It seems HydrusSlideshow is not connecting to hydrus.example.com/clientapi as configured, but to hydrus.example.com (both on port 443).

I am hosting Hybooru on hydrus.example.com, the dump in the error message matches the HTML of its landing page.

If you need anything else, ask away :)

PetrK39 commented 7 months ago

This is rather odd, as everything should be working. Try adding/removing the '/' at the end of your hydrus url. I'll try recreating the environment as soon as I have some free time.