So I'm trying to redirect requests without domain name (aka LAN search-domains)
to the correct FQDN (so I could use certificates).
For some reason it says that there's invalid character when trying to access : "http://who"
I'm expecting to to be redirected to https+fqdn
time="2022-06-14T20:51:27+03:00" level=debug msg="'502 Bad Gateway' caused by: parse \"https://${1}.docker.internal/${2}\": invalid character \"{\" in host name"
time="2022-06-14T20:51:28+03:00" level=debug msg="'502 Bad Gateway' caused by: parse \"https://${1}.docker.internal/${2}\": invalid character \"{\" in host name"
dynamic.yaml:
http:
middlewares:
expand-fqdn:
redirectRegex:
regex: "^https?://([^.]+)/(.*)"
replacement: "https://$${1}.docker.internal/$${2}"
permanent: "true"