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

ClientAPI on subpath #1

Open
Wyrrrd opened this issue Nov 2, 2023 · 3 comments
Open

ClientAPI on subpath #1

Wyrrrd opened this issue Nov 2, 2023 · 3 comments

Comments

@Wyrrrd
Copy link

Wyrrrd commented Nov 2, 2023

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
Copy link
Owner

PetrK39 commented Nov 9, 2023

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

@Wyrrrd
Copy link
Author

Wyrrrd commented Nov 12, 2023

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
Copy link
Owner

PetrK39 commented Nov 13, 2023

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.

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