@@ -24,6 +24,13 @@ ranch_transport_options = [
2424 max_connections: :infinity
2525]
2626
27+ cowboy_options = [
28+ idle_timeout: :infinity ,
29+ inactivity_timeout: :infinity ,
30+ # Experimental feature that allows using WebSocket over HTTP/2:
31+ enable_connect_protocol: true
32+ ]
33+
2734cowboy_dispatch = [
2835 { :_ ,
2936 [
@@ -40,6 +47,7 @@ config :rig_inbound_gateway, RigInboundGatewayWeb.Endpoint,
4047 http: [
4148 port: { :system , :integer , "INBOUND_PORT" , 4000 } ,
4249 dispatch: cowboy_dispatch ,
50+ protocol_options: cowboy_options ,
4351 transport_options: ranch_transport_options
4452 ] ,
4553 https: [
@@ -50,6 +58,7 @@ config :rig_inbound_gateway, RigInboundGatewayWeb.Endpoint,
5058 keyfile: "cert/selfsigned_key.pem" ,
5159 password: { :system , "HTTPS_KEYFILE_PASS" , "" } ,
5260 dispatch: cowboy_dispatch ,
61+ protocol_options: cowboy_options ,
5362 transport_options: ranch_transport_options
5463 ] ,
5564 render_errors: [ view: RigInboundGatewayWeb.ErrorView , accepts: ~w( html json xml) ] ,
0 commit comments