traefik 反代 adguardhome 无法访问

查看 28|回复 0
作者:potatouu   
http:
routers:
adhome:
entryPoints:
- "web"
rule: "Host(`ad.ptato.t`)"
service: [email protected]
middlewares:
- redirect
adhome-tls:
entryPoints:
- "websecure"
rule: "Host(`ad.ptato.t`)"
service: [email protected]
tls:
certResolver: "mytlschallenge"
options: adhome
services:
adhome:
loadBalancer:
servers:
- url: "https://172.21.0.9:80/"

这是 traefik 的配置。
version: '3'
services:
adguardhome:
image: adguard/adguardhome
restart: always
ports:
- 5222:53/tcp
- 5222:53/udp
- 3000:80/tcp
networks:
traefik_default:
ipv4_address: 172.21.0.9
volumes:
- ./work:/opt/adguardhome/work
- ./conf:/opt/adguardhome/conf
networks:
traefik_default:
external: true
这是 adguardhome 的文件,使用主机 IP:80 可以正常访问,改成其他端口也可以正常访问,但是反代后用域名无法访问,域名已经解析到主机 IP ,其他容器代理都正常
访问提示 Bad Gateway ,请问下什么原因呢
您需要登录后才可以回帖 登录 | 立即注册

返回顶部