Software / code / prosody
Comparison
prosody.cfg.lua.dist @ 12338:677ea3cc9c84
prosody.cfg.lua.dist: Improve section-like layout via headers and spacing
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 14 Feb 2022 16:27:58 +0000 |
| parent | 12337:fea2d8fff5c6 |
| child | 12339:4ba0a0dfa047 |
comparison
equal
deleted
inserted
replaced
| 12337:fea2d8fff5c6 | 12338:677ea3cc9c84 |
|---|---|
| 103 | 103 |
| 104 -- Disable account creation by default, for security | 104 -- Disable account creation by default, for security |
| 105 -- For more information see https://prosody.im/doc/creating_accounts | 105 -- For more information see https://prosody.im/doc/creating_accounts |
| 106 allow_registration = false | 106 allow_registration = false |
| 107 | 107 |
| 108 -- Server-to-server authentication | |
| 108 -- Require valid certificates for server-to-server connections? | 109 -- Require valid certificates for server-to-server connections? |
| 109 -- If false, other methods such as dialback (DNS) may be used instead. | 110 -- If false, other methods such as dialback (DNS) may be used instead. |
| 110 | 111 |
| 111 s2s_secure_auth = true | 112 s2s_secure_auth = true |
| 112 | 113 |
| 120 -- Even if you disable s2s_secure_auth, you can still require valid | 121 -- Even if you disable s2s_secure_auth, you can still require valid |
| 121 -- certificates for some domains by specifying a list here. | 122 -- certificates for some domains by specifying a list here. |
| 122 | 123 |
| 123 --s2s_secure_domains = { "jabber.org" } | 124 --s2s_secure_domains = { "jabber.org" } |
| 124 | 125 |
| 126 | |
| 127 -- Rate limits | |
| 125 -- Enable rate limits for incoming client and server connections. These help | 128 -- Enable rate limits for incoming client and server connections. These help |
| 126 -- protect from excessive resource consumption and denial-of-service attacks. | 129 -- protect from excessive resource consumption and denial-of-service attacks. |
| 127 | 130 |
| 128 limits = { | 131 limits = { |
| 129 c2s = { | 132 c2s = { |
| 132 s2sin = { | 135 s2sin = { |
| 133 rate = "30kb/s"; | 136 rate = "30kb/s"; |
| 134 }; | 137 }; |
| 135 } | 138 } |
| 136 | 139 |
| 140 -- Authentication | |
| 137 -- Select the authentication backend to use. The 'internal' providers | 141 -- Select the authentication backend to use. The 'internal' providers |
| 138 -- use Prosody's configured data storage to store the authentication data. | 142 -- use Prosody's configured data storage to store the authentication data. |
| 139 | 143 |
| 140 authentication = "internal_hashed" | 144 authentication = "internal_hashed" |
| 141 | 145 |
| 146 | |
| 147 -- Storage | |
| 142 -- Select the storage backend to use. By default Prosody uses flat files | 148 -- Select the storage backend to use. By default Prosody uses flat files |
| 143 -- in its configured data directory, but it also supports more backends | 149 -- in its configured data directory, but it also supports more backends |
| 144 -- through modules. An "sql" backend is included by default, but requires | 150 -- through modules. An "sql" backend is included by default, but requires |
| 145 -- additional dependencies. See https://prosody.im/doc/storage for more info. | 151 -- additional dependencies. See https://prosody.im/doc/storage for more info. |
| 146 | 152 |
| 171 -- specify the details here so clients can discover it. | 177 -- specify the details here so clients can discover it. |
| 172 -- Find more information at https://prosody.im/doc/turn | 178 -- Find more information at https://prosody.im/doc/turn |
| 173 | 179 |
| 174 --turn_external_host = "turn.example.com" | 180 --turn_external_host = "turn.example.com" |
| 175 --turn_external_secret = "your-secret-turn-access-token" | 181 --turn_external_secret = "your-secret-turn-access-token" |
| 182 | |
| 176 | 183 |
| 177 -- Logging configuration | 184 -- Logging configuration |
| 178 -- For advanced logging see https://prosody.im/doc/logging | 185 -- For advanced logging see https://prosody.im/doc/logging |
| 179 log = { | 186 log = { |
| 180 info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging | 187 info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging |
| 181 error = "prosody.err"; | 188 error = "prosody.err"; |
| 182 -- "*syslog"; -- Uncomment this for logging to syslog | 189 -- "*syslog"; -- Uncomment this for logging to syslog |
| 183 -- "*console"; -- Log to the console, useful for debugging when running in the foreground | 190 -- "*console"; -- Log to the console, useful for debugging when running in the foreground |
| 184 } | 191 } |
| 185 | 192 |
| 193 | |
| 186 -- Uncomment to enable statistics | 194 -- Uncomment to enable statistics |
| 187 -- For more info see https://prosody.im/doc/statistics | 195 -- For more info see https://prosody.im/doc/statistics |
| 188 -- statistics = "internal" | 196 -- statistics = "internal" |
| 197 | |
| 189 | 198 |
| 190 -- Certificates | 199 -- Certificates |
| 191 -- Every virtual host and component needs a certificate so that clients and | 200 -- Every virtual host and component needs a certificate so that clients and |
| 192 -- servers can securely verify its identity. Prosody will automatically load | 201 -- servers can securely verify its identity. Prosody will automatically load |
| 193 -- certificates/keys from the directory specified here. | 202 -- certificates/keys from the directory specified here. |