Open k-matvey opened 1 year ago
It's not just the homepage that redirects to /login.html
without caring about the base path.
When running AdGuard Home the first time around, the homepage would also redirect to /install.html
the same way. This is a one-time annoyance, so it's not as bad as the login thing, but nevertheless a problem.
It'd be nice if one could configure a "public base URL" somehow.
+1 for this fix. Being able to configure a base path would remove a lot of reverse proxy workarounds.
@ainar-g
Prerequisites
[X] I have checked the Wiki and Discussions and found no answer
[X] I have searched other issues and found no duplicates
[X] I want to request a feature or enhancement and not ask a question
Description
What problem are you trying to solve?
I have a problem using AGH behind Traefik with subpath, because AGH on login always return HTTP 302 code with location = /login.html. For use AGH with subpath we must rewrite http response header location to /adghome/login.html.
Proposed solution
To do this we can use Rewrite Headers plugin for Traefik. First of all we must enable plugin in traefik.yml config:
After that we can enable middleware for adguardhome container with labels:
Now dashboard working fine.
May be this solution can be added for AGH documentation ?