-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Reverse proxy compatability #32
Comments
From what I'm seeing, you need to add the following location block to get themes:
As for specific reverse proxy support, I can't really do anything more than what's already there, i.e specifying port/interfaces for the server to listen on. I don't know much about nginx, but if it's like apache your best shot is to map all of port 3000 to a subdomain, if possible: |
Thanks for the really quick response there. That was the missing piece. Themes are pulling in now. All of the above was required, along with your additional location block. Thanks a lot! |
So I just tried this and found that there's a lot more locations that would need to be passed for this to work now. Would it be possible to implement a base url config option like many other self hosted webservers have? |
You can find a cleaner reverse proxy nginx config here: https://sugoi.gitbook.io/lanraragi/installing-lanraragi/methods#warning-reverse-proxies |
So base url is 'will not support'? |
Not for now since there's no built-in support for it in mojo and I'd have to whip up something -- Feel free to make a new issue about it though! https://stackoverflow.com/questions/31864849/how-do-i-set-the-base-url-for-my-proxied-app |
Seems like the mojolicious guys don't want to add direct support for base-url However, there is documentation on using the before-dispatch hook to rewrite URLs. https://docs.mojolicious.org/Mojolicious/Guides/Cookbook#Rewriting |
Would love a supported way to reverse proxy LANraragi over my Nginx server to give me the ability to read on the go.
I've got a really janky way of it working right now, but I'm missing the page style.
My location blocks:
The text was updated successfully, but these errors were encountered: