我的traefik配置有问题... 我想要https服务的前端重定向正则表达式,但是在我的docker-compose中,以下配置似乎不起作用(并且未出现在trafik GUI上)。 在日志(调试级别)中,没有什么有趣的。 我的标签:
- traefik.http.port=80
- traefik.http.frontend.entryPoints=http
- traefik.https.port=443
- traefik.https.frontend.entryPoints=https
- traefik.https.protocol=https
- traefik.backend.loadbalancer.stickiness=true
- traefik.frontend.rule=HostRegexp:{subdomain:[a-zA-Z0-9-_]+}.mydomain.com
- traefik.https.frontend.redirect.permanent=true
- traefik.https.frontend.redirect.regex=^https://(.*)/$$"
- traefik.https.frontend.redirect.remplacement=https://$${1}/myapp/