Does anyone have a working config or insight for getting Bookstack and Requarks wiki working behind Caddy?


(Alexander Henderson) #1

I have been digging through github issues for both Bookstack and Requarks (wiki.js) to get them both working behind Caddy… Currently Requarks returns a 404 error with this config:

proxy /wiki/ 192.168.1.60:8585 {
        without /wiki
        transparent
        websocket
        }

and Bookstack has this config:

proxy /kb 192.168.1.60:8686 {
        transparent
        websocket
        }

My bookstack error looks like the one found here: https://github.com/BookStackApp/BookStack/issues/801


(Matthew Fay) #2

The issue will be that you’re proxying from a subfolder, but the app doesn’t realise it’s in a subfolder. When the app generates links (such as to critical display styling and javascript), it links to the web root, which you haven’t configured Caddy to proxy back to the app.

The app must be configured to generate links with the correct subfolder, or you need to manually correct for those links with a filter.

https://caddyserver.com/docs/http.filter


(Alexander Henderson) #3

Ah, okay. Thanks!