Comments (7)
From what I'm seeing, you need to add the following location block to get themes:
location /themes/ {
include /config/nginx/auth_basic.conf;
proxy_pass http://172.20.0.8:3000/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:
https://whatididtodowhatidid.wordpress.com/2014/03/14/subdomains-for-ports-on-same-ubuntu-server-with-nginx-reverse-proxy/
from lanraragi.
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!
from lanraragi.
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?
from lanraragi.
You can find a cleaner reverse proxy nginx config here: https://sugoi.gitbook.io/lanraragi/installing-lanraragi/methods#warning-reverse-proxies
from lanraragi.
So base url is 'will not support'?
from lanraragi.
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
https://stackoverflow.com/questions/25170147/base-url-in-mojolicious-template-rendering
from lanraragi.
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
from lanraragi.
Related Issues (20)
- Cant load doujin HOT 1
- Archives with full-width characters in filename experiencing delay while first searching/saving metadata
- Page order are not correct while reading epub files (only contain imgaes) HOT 5
- Make "Save archive title" plugin setting handled by LRR HOT 2
- Avif files not loading thumbnails on windows HOT 2
- Subfolders to Categories script making HOT 3
- Crash immediately after startup
- Crash immediately after startup
- [EHentai Plugin] Not use artist tag by default HOT 2
- I can't download files from remote URLs with nhentai plugin.
- eze plugin keeps stopping working
- Move to Alpine 3.18 and see if it fixes the problems on Windows HOT 2
- When running in Docker, you can open localhost:3000 successfully, but after directly installing it on Windows, it shows "localhost refused to connect." I have tried changing the port, but it didn't work. I'm using Windows 11 with WSL2.
- E*H File Search / Similarity Search HOT 2
- Adding an extremely large file to archive returns an error HOT 3
- [feature request] archive edit for webui HOT 3
- MSI installer failing to detect WSL on Windows 10 HOT 5
- LRR can't open zstd compressed archives
- Add a selection mode/mechanism to the main Index
- Error in Test after commit 303c151 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lanraragi.