title: I have an error: 504 Gateway Timeout with envoy and openiddict
body: <p>When I run my project (openiddict) without envoy, its fine, but when I implement openiddict with envoy, it ran into this error: 504 Gateway Timeout: upstream request timeout</p>
  <p>Here is my envoy.yaml:</p>
  <pre><code>admin:
   access_log_path: /tmp/admin_access.log
   address:
    socket_address:
      protocol: TCP
      address: 0.0.0.0
      port_value: 9901
  static_resources:
    listeners:
    - name: listener_0
     address:
        socket_address:
        protocol: TCP
        address: 0.0.0.0
        port_value: 10000
    filter_chains:
     - filters:
       - name: envoy.filters.network.http_connection_manager
         typed_config:
           &quot;@type&quot;: type.googleapis.com/envoy.config.filter
              .network.http_connection_manager.v2.HttpConnectionManager
          stat_prefix: ingress_http
          route_config:
           name: local_route
           virtual_hosts:
          - name: local_service
            domains: [&quot;*&quot;]
            routes:
            - match:
                prefix: &quot;/a&quot;
              route:
                prefix_rewrite: &quot;/api&quot;
                cluster: api_service
        http_filters:
        - name: envoy.filters.http.router
  clusters:
   - name: api_service
     connect_timeout: 0.25s
     type: LOGICAL_DNS
     dns_lookup_family: V4_ONLY
     lb_policy: ROUND_ROBIN
     load_assignment:
       cluster_name: api_service
       endpoints:
       - lb_endpoints:
         - endpoint:
            address:
              socket_address:
                address: api
                port_value: 80
  </code></pre>
  <p>How do I set time out for my api? how to fix this? Anyone get an idea?</p>