|
I managed to get KoInsight up and running as rootless Podman Quadlet on my Raspi5. But I have to use a subfolder like http://myhost.fritz.box/koinsight in order to access the KoInsight instance. But a simple does not work, because /assets and /books etc is then not accessible, and I get a blank page. Has anyone managed to get this work with a subfolder? |
Replies: 1 comment
|
Hi! This is a classic issue When you reverse proxy to a subfolder like
Use a SubdomainThis is by far the easiest and most robust fix. If you can use koinsight.myhost.fritz.box {
reverse_proxy 127.0.0.1:8081
}
Or Configure ApplicationFor a subfolder to work, the application itself must be configured to know it is running under You can check if the container supports an environment variable for this (common ones are Hope that clears up why the page is blank! |
Hi! This is a classic issue
When you reverse proxy to a subfolder like
/koinsight, Caddy handles the request just fine, but the HTML returned by the application is unaware of that subfolder.myhost.fritz.box/koinsight.index.html.index.html, the app likely refers to its assets using "absolute" paths, like<script src="/app.js">or<link href="/styles.css">./app.jsand requestsmyhost.fritz.box/app.js(at the root), notmyhost.fritz.box/koinsight/app.js./app.js, sees it doesn't start with/koinsight, and returns a 404 (or your main dashboard).Use a Subdomain
This is by far the…