wger icon indicating copy to clipboard operation
wger copied to clipboard

Supporting subdirectories via reverse proxy

Open Insighter2k opened this issue 2 years ago • 3 comments

I am running different apps behind a reverse proxy. Using my current domain with different subdirectories. Unfortunately, I haven't found any setting / configuration for configuring this app for a subdirectory. In the readme for the deployment, only a domain or subdomain is supported, but no subdirectory. Are there any plans to add this feature? I do not want to add the hassle of adding another subdomain and certification process for just this app. Thanks for the work so far :-)

Kind regards

Insighter2k avatar Aug 02 '23 19:08 Insighter2k

Hi! While there isn't a technical reason why this couldn't work, there are probably a few places where we assume that it is running directly under / so some things would probably break

So basically we'd need to sit down, test it and fix everything step by step

rolandgeider avatar Aug 02 '23 19:08 rolandgeider

I guess so. There is no technical reason against this. It just takes some effort and depending on the code behind, it might be a lot or small changes needed to adjust to sub-directories.

Insighter2k avatar Aug 02 '23 20:08 Insighter2k

exactly, and I would guess there shouldn't be that many places to fix (famous last words 😅 )

rolandgeider avatar Aug 03 '23 14:08 rolandgeider