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

Enable subdirectory support by default #3810

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Jan 9, 2025

Brief summary

Switch to enabling subdirectory support with /audiobookshelf on the server and web client, according to the plan laid out in discussion #3535.

Which issue is fixed?

This finally fixes #385

Users will now be able to set their reverse proxies to proxy /audiobookshelf subdirectory requests

In-depth Description

This is the last step in supporting subdirectory with the existing static site generation approach.

The plan is described in detail in #3535.

As a reminder, this will set a fixed subdirectory of /audiobookshelf on the web client (non-subdirectory paths will get rewritten by the server), and the server will support both subdirectory requests (with /audiobookshelf prefix) and non-subdirectory requests (with no prefix).

Note: Mobile app support for subdirectory is already implemented and checked in with audiobookshelf-app PR #1417, but is pending release of a new version. Other mobile clients that would like to support subdirectory access will likely need to make some changes in the spirit of that PR.

How have you tested this?

This PR just switches the feature on by default.

The many changes required to make this happen were previously tested in respective previous PRs, and were tested again to make sure they still worked now.

One thing I haven't tested properly is the reverse proxy part, since my reverse proxy (on my Synology NAS) doesn't support support subdirectory proxying. I am sure this works well once you set it up on a supporting reverse proxy (like NGINX), but haven't tested this myself.

@mikiher mikiher marked this pull request as ready for review January 9, 2025 07:27
@advplyr
Copy link
Owner

advplyr commented Jan 19, 2025

Thanks!

@advplyr advplyr merged commit 58ca264 into advplyr:master Jan 19, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

[Enhancement]: Add subfolder URL path instead of using a subdomain
2 participants