...
1# The startSession API sets up a long running SSE tunnel.
2# If we used the default edge-api Mapping the connection would drop after 1
3# minute due to the timout_ms set on that mapping. Create a new mapping limited
4# to the single route /api/ea/startSession with a 15 minute idle timeout and no
5# end-to-end timeout (timeout_ms: 0). The mapping must be the same as the
6# edge-api mapping for all other fields as we still expect the endpoint to be
7# proxied through the auth-proxy.
8apiVersion: getambassador.io/v3alpha1
9kind: Mapping
10metadata:
11 name: eagateway
12spec:
13 service: auth-proxy.auth-proxy:80
14 hostname: ${domain}
15 prefix: /api/ea/startSession
16 idle_timeout_ms: 900000
17 rewrite: ""
18 timeout_ms: 0
View as plain text