Skip to content

Commit

Permalink
Add a newline after module options to improve config readability
Browse files Browse the repository at this point in the history
This way the resulting config for prod, dev nodes and all test presets
has a single newline between each module.
Previously some newlines were missing if there was at least one option
as each option is in its separate line.
  • Loading branch information
chrzaszcz committed Nov 16, 2021
1 parent eacb079 commit 82b6c19
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
34 changes: 17 additions & 17 deletions big_tests/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@
connection.tls.cacertfile = \"priv/ssl/cacert.pem\"
connection.tls.server_name_indication = false"},
{service_domain_db, ""},
{mod_last, " backend = \"rdbms\""},
{mod_privacy, " backend = \"rdbms\""},
{mod_private, " backend = \"rdbms\""},
{mod_last, " backend = \"rdbms\"\n"},
{mod_privacy, " backend = \"rdbms\"\n"},
{mod_private, " backend = \"rdbms\"\n"},
{mod_offline, " backend = \"rdbms\"\n"},
{mod_vcard, " backend = \"rdbms\"
host = \"vjud.@HOST@\""},
host = \"vjud.@HOST@\"\n"},
{mod_roster, " backend = \"rdbms\"\n"}]},
{odbc_mssql_mnesia,
[{dbs, [redis, mssql]},
Expand All @@ -275,12 +275,12 @@
connection.driver = \"odbc\"
connection.settings = \"DSN=mongoose-mssql;UID=sa;PWD=mongooseim_secret+ESL123\""},
{service_domain_db, ""},
{mod_last, " backend = \"rdbms\""},
{mod_privacy, " backend = \"rdbms\""},
{mod_private, " backend = \"rdbms\""},
{mod_last, " backend = \"rdbms\"\n"},
{mod_privacy, " backend = \"rdbms\"\n"},
{mod_private, " backend = \"rdbms\"\n"},
{mod_offline, " backend = \"rdbms\"\n"},
{mod_vcard, " backend = \"rdbms\"
host = \"vjud.@HOST@\""},
host = \"vjud.@HOST@\"\n"},
{mod_roster, " backend = \"rdbms\"\n"}]},
{mysql_redis,
[{dbs, [redis, mysql, rmq]},
Expand All @@ -305,12 +305,12 @@
connection.tls.cacertfile = \"priv/ssl/cacert.pem\"
connection.tls.versions = [\"tlsv1.2\"]"},
{service_domain_db, ""},
{mod_last, " backend = \"rdbms\""},
{mod_privacy, " backend = \"rdbms\""},
{mod_private, " backend = \"rdbms\""},
{mod_last, " backend = \"rdbms\"\n"},
{mod_privacy, " backend = \"rdbms\"\n"},
{mod_private, " backend = \"rdbms\"\n"},
{mod_offline, " backend = \"rdbms\"\n"},
{mod_vcard, " backend = \"rdbms\"
host = \"vjud.@HOST@\""},
host = \"vjud.@HOST@\"\n"},
{mod_roster, " backend = \"rdbms\"\n"}]},
{ldap_mnesia,
[{dbs, [redis, ldap]},
Expand Down Expand Up @@ -346,7 +346,7 @@
{mod_vcard, " backend = \"ldap\"
host = \"vjud.@HOST@\"
ldap_base = \"ou=Users,dc=esl,dc=com\"
ldap_filter = \"(objectClass=inetOrgPerson)\""}]},
ldap_filter = \"(objectClass=inetOrgPerson)\"\n"}]},
{riak_mnesia,
[{dbs, [redis, riak]},
{auth_method, "\"riak\""},
Expand All @@ -369,12 +369,12 @@
connection.tls.ciphers = \"AES256-SHA:DHE-RSA-AES128-SHA256\"
connection.tls.server_name_indication = false
connection.tls.cacertfile = \"priv/ssl/cacert.pem\""},
{mod_last, " backend = \"riak\""},
{mod_privacy, " backend = \"riak\""},
{mod_private, " backend = \"riak\""},
{mod_last, " backend = \"riak\"\n"},
{mod_privacy, " backend = \"riak\"\n"},
{mod_private, " backend = \"riak\"\n"},
{mod_offline, " backend = \"riak\"\n"},
{mod_vcard, " backend = \"riak\"
host = \"vjud.@HOST@\""},
host = \"vjud.@HOST@\"\n"},
{mod_roster, " backend = \"riak\"\n"}
]},
{elasticsearch_and_cassandra_mnesia,
Expand Down
1 change: 0 additions & 1 deletion rel/files/mongooseim.toml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
{{#mod_private}}
[modules.mod_private]
{{{mod_private}}}

{{/mod_private}}
[modules.mod_register]
welcome_message = {body = "", subject = ""}
Expand Down
2 changes: 1 addition & 1 deletion rel/mim1.vars-toml.config
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
password = \"secret\""}.

{mod_cache_users, " time_to_live = 2
number_of_segments = 5"}.
number_of_segments = 5\n"}.
{zlib, "10_000"}.
{c2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}.
{s2s_dhfile, "\"priv/ssl/fake_dh_server.pem\""}.
2 changes: 1 addition & 1 deletion rel/vars-toml.config.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{mod_blocking, ""}.
{mod_private, ""}.
{mod_roster, ""}.
{mod_vcard, " host = \"vjud.@HOST@\""}.
{mod_vcard, " host = \"vjud.@HOST@\"\n"}.
{sm_backend, "\"mnesia\""}.
{auth_method, "\"internal\""}.
{cyrsasl_external, "\"standard\""}.
Expand Down

0 comments on commit 82b6c19

Please sign in to comment.