Skip to content

Commit 2fc98e5

Browse files
committed
Add missing anonymous backend config for dynamic domains
After correctly enabling CETS for the 'anonymous' host type on mim1, CETS cluster tests were failing because of missing tables on mim2. The solutions was to add the 'anonymous' host type for mim2, and set the anonymous auth backend to 'cets'. For the sake of consistency, I also did it for mim3.
1 parent c88e5c0 commit 2fc98e5

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

rel/mim1.vars-toml.config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
{redis_database_number, "0"}.
2828

2929
{mod_amp, ""}.
30+
3031
{host_config,
3132
"[[host_config]]
3233
host = \"anonymous.localhost\"
@@ -39,11 +40,14 @@
3940
{{/auth_anonymous_backend}}
4041

4142
[[host_config]]
42-
host_type = \"anonymous\"
43+
host = \"anonymous\"
4344

4445
[host_config.auth.anonymous]
4546
allow_multiple_connections = true
4647
protocol = \"both\"
48+
{{#auth_anonymous_backend}}
49+
backend = \"{{{auth_anonymous_backend}}}\"
50+
{{/auth_anonymous_backend}}
4751

4852
[[host_config]]
4953
host_type = \"dummy auth\"

rel/mim2.vars-toml.config

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{http_prometheus_endpoint_port, 9092}.
1818

1919
{hosts, "\"localhost\", \"anonymous.localhost\", \"localhost.bis\""}.
20-
{host_types, "\"test type\", \"dummy auth\""}.
20+
{host_types, "\"test type\", \"dummy auth\", \"anonymous\""}.
2121
{default_server_domain, "\"localhost\""}.
2222
{cluster_name, "mim"}.
2323
{redis_database_number, "0"}.
@@ -69,7 +69,17 @@
6969
backend = \"{{{auth_anonymous_backend}}}\"
7070
{{/auth_anonymous_backend}}
7171

72-
[[host_config]]
72+
[[host_config]]
73+
host_type = \"anonymous\"
74+
75+
[host_config.auth.anonymous]
76+
allow_multiple_connections = true
77+
protocol = \"both\"
78+
{{#auth_anonymous_backend}}
79+
backend = \"{{{auth_anonymous_backend}}}\"
80+
{{/auth_anonymous_backend}}
81+
82+
[[host_config]]
7383
host_type = \"dummy auth\"
7484
[host_config.modules.mod_presence]
7585
[host_config.auth.dummy]"}.

rel/mim3.vars-toml.config

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{node_name, "mongooseim3@localhost"}.
2222

2323
{hosts, "\"localhost\", \"anonymous.localhost\", \"localhost.bis\""}.
24+
{host_types, "\"test type\", \"anonymous\""}.
2425
{default_server_domain, "\"localhost\""}.
2526
{cluster_name, "mim"}.
2627
{redis_database_number, "0"}.
@@ -63,7 +64,16 @@
6364
{{#auth_anonymous_backend}}
6465
backend = \"{{{auth_anonymous_backend}}}\"
6566
{{/auth_anonymous_backend}}
66-
"}.
67+
68+
[[host_config]]
69+
host_type = \"anonymous\"
70+
71+
[host_config.auth.anonymous]
72+
allow_multiple_connections = true
73+
protocol = \"both\"
74+
{{#auth_anonymous_backend}}
75+
backend = \"{{{auth_anonymous_backend}}}\"
76+
{{/auth_anonymous_backend}}"}.
6777

6878
{erlang_doctor_limit, 100000}.
6979

0 commit comments

Comments
 (0)