Based on other reverse proxies, the Host header must be sent to aws API gateway when putting it behind a reverse proxy. See: https://stackoverflow.com/questions/39591495/nginx-proxy-pass-to-aws-api-gateway
Is this an equivalent configuration in a dynamic conf? This does not work. Any advice is appreciated.
[http.middlewares]
[http.middlewares.tip-strip.replacePath]
path = "/dev"
[http.middlewares.testbl.headers.customRequestHeaders]
Host = "myapi.execute-api.us-east-2.amazonaws.com"
[http.routers]
[http.routers.tip-router]
rule = "Host(`my.url`) && Path(`/path`)"
service = "tip-service"
middlewares = ["tip-strip", "testbl"]
[http.routers.tip-router.tls]
[http.services]
[[http.services.tip-service.loadBalancer.servers]]
url = "https://myapi.execute-api.us-east-2.amazonaws.com/"