Web-UI - Reverse proxy support (traefik)

I’m running duplicacy web in a docker container (thanks to saspus/duplicacy-web :)).
As a best practice I try to put all my web gui containers behind a traefik reverse proxy (also running in a container).
I have duplicacy running on my docker host served via traefik on sub-path /duplicacy
These are the traefik rules I have in my docker-compose:


The first rule is what I typically need to put, basically telling traefik to forward http://docker-host/duplicacy/ toward the duplicacy container.
I had to add the second rule to make the duplicacy web gui function properly. This is because those functions are being called from within the duplicacy web gui and they are not including the /duplicacy/ sub path.

Requested feature
I’m not a web developer so I don’t know the correct technical way to ask this :slight_smile: Ideally the web gui should take into account the headers it is getting from the reverse proxy to realize it is running under a /duplicacy/ subpath. Enabling me to get rid of that second rule.


1 Like

I can add an optional url prefix that can be set in the duplicacy.json file. This should be a easy change.


Cool :slight_smile: I will happily try it out. :+1:

This is great. I need it for the same reason, and pretty much the same scenario.

Would be great to also expose it as an environment variable for docker (so I can set it in a docker-compose).