Open E-J-D opened 1 month ago
Hey! Thanks for the report. I haven't used traefik myself, so can't really debug this. Are there any console logs or anything from the browser? First thing that pops into my head is some kind of CORS limitation within traefik. I tried this with cloudflare tunnel and it seems to work just fine. Although there seems to be some kinds of issues with previous prs, so I might have to roll back some changes. I'll let you know. I also don't have much time to develop this, but I'll try my best!
Hi @E-J-D, you need to set BASEA_PATH
in environmental variables (For example; BASE_PATH=/pwgen/
) and don't have to add stripprefix
or redirectregex
, because the app is already aware of the base path(BASEA_PATH
).
So, you just have to add PathPrefix
in traefik labels like below
...
labels:
...
- traefik.http.routers.pwgen.rule=Host(`${MY_DOMAIN}`) && PathPrefix(`/pwgen`)
environment:
BASE_PATH: "/pwgen/"
NOTE: While setting environmental variable BASE_PATH
, make sure end with trailing slash(/
) i.e. BASE_PATH: "/pwgen/"
otherwise it won't generate the password
Hi @veerendra2, thanks for your help. You made my day. Adding BASE_PATH=/pwgen/ to the environment did the trick. Thanks! And sorry @jocxfin for creating a ticket, which did not belong to your software.
Describe the bug Using pwgen behind a traefik reverse proxy with && PathPrefix(
/pwgen
) function breaks the ui.To Reproduce Steps to reproduce the behavior: Use docker compose file
``
The container starts and traefik routes the https://sub.domain.de/pwgen request to the container, but the ui is broken.
Expected behavior Ui should be the same as browsing to the internal container IP e.g. http://10.200.100.1:5069 which works perfectly.
Screenshots
Desktop (please complete the following information):
Would love to use pwgen in my docker enviroment which is handled by traefik as a reverse proxy and handles multiple container as a path instead of subdomains.