New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use relative URLs everywhere #1300
Comments
To make things work for AGH under a reverse proxy server we need:
Backup plan:
|
nginx config:
|
Some are using Traefik as 'proxy'. This idea might solve the same issue which occurs when you use Traefik. |
Isn't it possible to have a traefik equivalent to this nginx config? |
caddy config:
|
This gives me 502 Bad Gateway. My full Nginx config is as follows: server { |
The default config works fine - just add
|
Sorry to be thick but which part do you mean? I have already have another service running at location /. I tried adding root and index but it now gives me a 404. |
I mean that you may start with the default nginx config. |
I am using Traefik with subpath redirection. Everything is working fine expect, if you are not logged in. Then it redirects to /login.html which isn't reachable for sure. I am using /adguard/ for subdomain. here are my used labels: - "traefik.http.routers.adguardhome.rule=PathPrefix(`/adguardhome`)"
- "traefik.http.routers.adguardhome.entrypoints=websecure"
- "traefik.http.routers.adguardhome.tls=true"
- "traefik.http.routers.adguardhome.middlewares=adguardhome-stripprefix"
- "traefik.http.middlewares.adguardhome-stripprefix.stripprefix.prefixes=/adguardhome"
- "traefik.http.middlewares.adguardhome-stripprefix.stripprefix.forceSlash=false"
- "traefik.http.services.adguardhome.loadbalancer.server.port=80" Same problem is, when I like to logout, then it goes to /console/logout which brings a 404, too. I also tried to redirect /adguardhome/ to /adguardhome/login.html but after logging in I couldn't get the Dashboard. I could not find anything about Traefik, AdGuard Home and subpath setup. So perhaps someone could help me out with that. |
As of 2023, the redirect issue can be fixed with a header-rewriting traefik plugin (e.g. https://plugins.traefik.io/plugins/628c9eb5108ecc83915d7758/rewrite-header). Simply add
|
The idea is to make it easier to use AGH behind a reverse proxy. See the explanation here:
#1085 (comment)
What needs to be done:
http://192.168.10.95/adguard/
The text was updated successfully, but these errors were encountered: