Replies: 6 comments 11 replies
-
Is that example for Apache? If so, any ideas what it should look like for nginx? I have this for nginx:
It sort of works, but not entirely. I can't play anything and some of the admin stuff is not working. |
Beta Was this translation helpful? Give feedback.
-
Yeah I think that would be helpful. Can you open a pull request putting that in the readme between Install and Run from Source? |
Beta Was this translation helpful? Give feedback.
-
Got it working, So for anyone with Nginx this is what it should look like
Works 100%. Will see about doing a pull to update the readme as soon as I can. |
Beta Was this translation helpful? Give feedback.
-
Here is what I tried:
It just keeps spinning. Of course, there could be something wrong with this. A lot is just copy/paste. But my understanding was that "https://mysite.home/audiobookshelf/xxx" should then map to "http://127.0.0.1:1337/xxx". I haven't spent much time yet trying to diagnose it. It does work directly with http://myhomeserver:1337" so at least I am in business. |
Beta Was this translation helpful? Give feedback.
-
I looked into why it is not working a bit. There is a 301 (permanent redirect) to "/login". Instead I should have "/audiobooks/login". I don't know vue and JS Node is not my forté. But it looks to me like whatever function is called for redirect in client/middleware/authenticated.js should be prepending with my prefix (which the docker setup does not know about) in order for this to work. Maybe this is something I can look into when I find more time. I also see "serverUrl" and "baseUrl" in nuxtconfig.js. So maybe there is already some framework for doing this already. But I am just guessing at the moment. |
Beta Was this translation helpful? Give feedback.
-
Thought it would be worth mentioning that ABS is fully accessible and works great when proxied using Nginx-Proxy-Manager. https://nginxproxymanager.com/ |
Beta Was this translation helpful? Give feedback.
-
I think it would be nice to have an example of an Apache (or NGINX) config to proxy into a running instance of the program. I like to create proxies to programs so I can use https through Apache, usually a simple ProxyPass works but since this project uses websockets it was a bit more complicated.
I managed to get proxy working with the following configuration:
I think this could save a lot of people some time if it were in README or docs.
Beta Was this translation helpful? Give feedback.
All reactions