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

[Bug]: E-books fail to load when using reverse proxy via subdirectory in 2.18.0 #3869

Closed
nickpascucci opened this issue Jan 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nickpascucci
Copy link

What happened?

I updated my ABS installation to v2.18.0 and configured Caddy to point to it as a reverse proxy for the $SERVER_ROOT/audiobookshelf path. When opening an EPUB book I see a blank page. In the browser Network tab I see a failed request to the following path:

https://$SERVER_ROOT/api/items/9e3b549a-4c12-4ea2-b365-12a57df95f8d/ebook

Note that this path does not use the /audiobookshelf subdirectory prefix.

Image

What did you expect to happen?

The EPUB should load. When accessing the same server using the 13378 port, the book loads successfully. In this case the request is still made without the prefix, but because there is no reverse proxy in the way it succeeds.

Image

Steps to reproduce the issue

  1. Configure a reverse proxy to target the /audiobookshelf subdirectory to an ABS v2.18.0 server.
  2. Access the server through the reverse proxy using the /audiobookshelf subdirectory prefix.
  3. Try to open an EPUB book.

Audiobookshelf version

v2.18.0

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox

Logs

Additional Notes

No response

@nickpascucci nickpascucci added the bug Something isn't working label Jan 20, 2025
@advplyr
Copy link
Owner

advplyr commented Jan 20, 2025

This will be patched shortly

@advplyr advplyr closed this as completed Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants