diff --git a/rel/fed1.vars-toml.config b/rel/fed1.vars-toml.config index 150670d955c..4916aac8063 100644 --- a/rel/fed1.vars-toml.config +++ b/rel/fed1.vars-toml.config @@ -7,6 +7,8 @@ {http_api_endpoint_port, 5294}. {http_api_old_endpoint_port, 5293}. {http_api_client_endpoint_port, 8095}. +{http_qraphql_api_endpoint_port, 5555}. + %% This node is for s2s testing. %% "localhost" host should NOT be defined. @@ -47,6 +49,8 @@ {http_api_endpoint, "ip_address = \"127.0.0.1\" port = {{ http_api_endpoint_port }}"}. {http_api_client_endpoint, "port = {{ http_api_client_endpoint_port }}"}. +{http_graphql_api_endpoint, "ip_address = \"127.0.0.1\" + port = {{http_qraphql_api_endpoint_port}}"}. {c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. {s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}. diff --git a/rel/files/mongooseim.toml b/rel/files/mongooseim.toml index 1ea63a32532..a04cef5835b 100644 --- a/rel/files/mongooseim.toml +++ b/rel/files/mongooseim.toml @@ -118,6 +118,17 @@ app = "cowboy_swagger" content_path = "swagger" +[[listen.http]] + {{#http_graphql_api_endpoint}} + {{{http_graphql_api_endpoint}}} + {{/http_graphql_api_endpoint}} + transport.num_acceptors = 10 + transport.max_connections = 1024 + + [[listen.http.handlers.mongoose_graphql_cowboy_handler]] + host = "_" + path = "/graphql-api" + [[listen.http]] {{#http_api_old_endpoint}} {{{http_api_old_endpoint}}} diff --git a/rel/mim2.vars-toml.config b/rel/mim2.vars-toml.config index cbe5a4d447d..c676af3c004 100644 --- a/rel/mim2.vars-toml.config +++ b/rel/mim2.vars-toml.config @@ -9,6 +9,7 @@ {http_api_endpoint_port, 8090}. {http_api_client_endpoint_port, 8091}. {service_port, 8899}. +{http_qraphql_api_endpoint_port, 5552}. {hosts, "\"localhost\", \"anonymous.localhost\", \"localhost.bis\""}. {host_types, "\"test type\", \"dummy auth\""}. @@ -19,6 +20,8 @@ {s2s_default_policy, "\"allow\""}. {highload_vm_args, ""}. +{http_graphql_api_endpoint, "ip_address = \"127.0.0.1\" + port = {{http_qraphql_api_endpoint_port}}"}. {http_api_old_endpoint, "ip_address = \"127.0.0.1\" port = {{ http_api_old_endpoint_port }}"}. {http_api_endpoint, "ip_address = \"127.0.0.1\" diff --git a/rel/mim3.vars-toml.config b/rel/mim3.vars-toml.config index a20879bf50b..5e2a0a109b2 100644 --- a/rel/mim3.vars-toml.config +++ b/rel/mim3.vars-toml.config @@ -9,6 +9,7 @@ {http_api_old_endpoint_port, 5292}. {http_api_endpoint_port, 8092}. {http_api_client_endpoint_port, 8093}. +{http_qraphql_api_endpoint_port, 5553}. {hosts, "\"localhost\", \"anonymous.localhost\", \"localhost.bis\""}. {default_server_domain, "\"localhost\""}. @@ -36,6 +37,8 @@ tls.module = \"just_tls\" tls.ciphers = \"ECDHE-RSA-AES256-GCM-SHA384\""}. +{http_graphql_api_endpoint, "ip_address = \"127.0.0.1\" + port = {{http_qraphql_api_endpoint_port}}"}. {http_api_old_endpoint, "ip_address = \"127.0.0.1\" port = {{ http_api_old_endpoint_port }}"}. {http_api_endpoint, "ip_address = \"127.0.0.1\" diff --git a/rel/reg1.vars-toml.config b/rel/reg1.vars-toml.config index 8adc9418b86..5d14beda54f 100644 --- a/rel/reg1.vars-toml.config +++ b/rel/reg1.vars-toml.config @@ -8,6 +8,7 @@ {http_api_endpoint_port, 8074}. {http_api_old_endpoint_port, 5273}. {http_api_client_endpoint_port, 8075}. +{http_qraphql_api_endpoint_port, 5554}. %% This node is for global distribution testing. %% reg is short for region. @@ -36,6 +37,8 @@ tls.ciphers = \"ECDHE-RSA-AES256-GCM-SHA384\""}. {secondary_c2s, ""}. +{http_graphql_api_endpoint, "ip_address = \"127.0.0.1\" + port = {{http_qraphql_api_endpoint_port}}"}. {http_api_old_endpoint, "ip_address = \"127.0.0.1\" port = {{ http_api_old_endpoint_port }}"}. {http_api_endpoint, "ip_address = \"127.0.0.1\" diff --git a/rel/vars-toml.config.in b/rel/vars-toml.config.in index c3550e4a1ba..e8994238c4c 100644 --- a/rel/vars-toml.config.in +++ b/rel/vars-toml.config.in @@ -5,6 +5,7 @@ {incoming_s2s_port, 5269}. {http_port, 5280}. {https_port, 5285}. +{http_graphql_api_endpoint_port, 5551}. % vm.args {highload_vm_args, "+P 10000000 -env ERL_MAX_PORTS 250000"}. @@ -39,6 +40,8 @@ tls.password = \"\""}. {http_api_old_endpoint, "ip_address = \"127.0.0.1\" port = 5288"}. +{http_graphql_api_endpoint, "ip_address = \"0.0.0.0\" + port = {{http_graphql_api_endpoint_port}}"}. {http_api_endpoint, "ip_address = \"127.0.0.1\" port = 8088"}. {http_api_client_endpoint, "port = 8089"}.