Cloud run over reverse proxy throws 404

Solution 1:

Trying different solutions to this, I made it work with Nginx and discovered that the problem is in the Host Header.

By default, Traefik uses the Host from the original request, but them, if this Host not match in google Cloud Run, the app is not found.

To solve this I just set the passHostHeader value to false in Traefik dynamics config.

[http.services.myservice.loadBalancer]
  passHostHeader = false
  [[http.services.webei.myservice.servers]]