mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:46:56 -05:00
[Bug]: NGINX - Cannot GET / #528
Labels
No labels
authentication
awaiting release
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/audiobookshelf#528
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RocketRammer on GitHub (Jul 11, 2022).
Describe the issue
Hi There,
I'm unable to access the webpage via NGINX. I'm able to access it locally via IP:PORT
This is my NGINX config relating to this:
Included my various SSL/security bits above for the case they're related. I use NGINX currently for a whole host of other services which are all working fine.
When browsing to https://FQDN/audiobookshelf I simply get:
"Cannot GET /audiobookshelf"
Inside the access.log I see:
"GET /audiobookshelf HTTP/2.0" 404 153 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
Debug logs from AudioBookShelf are unremarkable:
=== Starting Server ===
2022-07-11 11:15:46
INFO
[Server] Init v2.0.23
2022-07-11 11:15:46
INFO
[DB] 0 Library Items Loaded
2022-07-11 11:15:46
INFO
[DB] 0 Libraries Loaded
2022-07-11 11:15:46
INFO
[DB] 0 Collections Loaded
2022-07-11 11:15:46
INFO
[DB] 0 Authors Loaded
2022-07-11 11:15:46
INFO
[DB] 0 Series Loaded
2022-07-11 11:15:46
INFO
[DB] 1 Users Loaded
2022-07-11 11:15:46
INFO
[BackupManager] 0 Backups Found
2022-07-11 11:15:46
INFO
[BackupManager] Auto Backups are disabled
2022-07-11 11:15:46
INFO
[LogManager] Init current daily log filename: 2022-07-11.txt
2022-07-11 11:15:46
INFO
Listening on http://0.0.0.0:7331
2022-07-11 11:45:29
INFO
[Server] Socket Connected REDACTED-UNSURE-IF-UNIQUE
Steps to reproduce the issue
Audiobookshelf version
v2.0.23
How are you running audiobookshelf?
Built from source
@Lanjelin commented on GitHub (Jul 11, 2022):
Try changing
To
http://nginx.org/r/proxy_pass
@RocketRammer commented on GitHub (Jul 11, 2022):
Ah interesting. Tested and progress.. that then gives a never ending loading wheel:
@Lanjelin commented on GitHub (Jul 11, 2022):
If you open the console, my guess is that’s there a lot of 404 errors to yoursomain.tld/audiobookshelf/…stuff…
I usually just add another subdomain instead of subfolders when the application doesn’t listen on a subdirectory.
It is possible though to get working, and my guess is that you need a subfilter as well.
https://nginx.org/r/sub_filter
Not in front of my computer at the moment, or I’d test myself, but hopefully the following is close.
@RocketRammer commented on GitHub (Jul 11, 2022):
Thanks @Lanjelin, appreciate your help.
I'm not familiar with the sub_filter, I put your example (changing domain) inside the current location block but no change, still the loading circle.
@Lanjelin commented on GitHub (Jul 11, 2022):
I'm sorry, I had it backwards, subfolder to subdomain.
The server (and clients) has to support subirectory (aka. URL base).
As per the Reverse Proxy Setup, it needs to be hosted directly at the root of the domain or a subdomain
@RocketRammer commented on GitHub (Jul 11, 2022):
Ah gotcha, I don't think I'll be able to do that in this instance as I'm using ddns for the domain name (not one I own) thus can't do subdomains.
@RocketRammer commented on GitHub (Jul 11, 2022):
Is there a way to set the 'base' in AudioBookShelf? - by that I mean in this case what would be /audiobookshelf/ for myself. Every other app I host has this setting, seems like its missing here.
@advplyr commented on GitHub (Jul 12, 2022):
Subfolders are not supported yet so you will need to use a subdomain for your reverse proxy. There is a ticket open for subfolder support #385 and it will get implemented at some point but it's not a quick update unfortunately.