Skip to content

Commit

Permalink
Add configuration for GraphQL listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Premwoik committed Oct 22, 2021
1 parent c48702d commit 4c2ac1e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rel/fed1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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\""}.
11 changes: 11 additions & 0 deletions rel/files/mongooseim.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}
Expand Down
3 changes: 3 additions & 0 deletions rel/mim2.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -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\""}.
Expand All @@ -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\"
Expand Down
3 changes: 3 additions & 0 deletions rel/mim3.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -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\""}.
Expand Down Expand Up @@ -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\"
Expand Down
3 changes: 3 additions & 0 deletions rel/reg1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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\"
Expand Down
3 changes: 3 additions & 0 deletions rel/vars-toml.config.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"}.
Expand Down Expand Up @@ -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"}.
Expand Down

0 comments on commit 4c2ac1e

Please sign in to comment.