dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Run Dawarich in a subdirectory

Open Compizfox opened this issue 1 year ago • 2 comments

Describe the bug Apologies in advance if this is documented somewhere and I missed it, but I couldn't find anything about this.

I am trying to run Dawarich with a reverse proxy in a subdirectory. In other words, I'm trying to reverse proxy https://example.com/dawarich/ to the Dawarich app running in a Docker container at http://localhost:3000.

Unfortunately all the links in the frontend (including CSS and JS) are absolute links, so they point to https://example.com/foobar instead of https://example.com/dawarich/foobar, which results in it being completely broken.

Usually apps that use absolute URLs in this way provide a base URL variable that can be used for this instance, but I couldn't find that for Dawarich.

Compizfox avatar Jul 26 '24 11:07 Compizfox

There is no such functionality in Dawarich at the moment. It's possible, but it's not a priority right now

Freika avatar Jul 26 '24 16:07 Freika

@Compizfox, did you try to set the RAILS_RELATIVE_URL_ROOT variable and see what happens?

ignisf avatar Sep 03 '24 07:09 ignisf