Skip to content

Commit 51dfc80

Browse files
authored
docs: sync config.js.md (add prefetchTimeout, update ldap) (#275)
1 parent 379c34d commit 51dfc80

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

_includes/config.js.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DO NOT EDIT THIS FILE MANUALLY.
33
Content for the following is generated by this script in the main repo:
44
https://github.com/thelounge/thelounge/blob/master/scripts/generate-config-doc.js
5-
Last updated at 2022-03-03 00:59:45 (UTC) by Max Leiter
5+
Last updated at 2023-12-12 16:26:27 (UTC) by Zach Bloomquist
66
-->
77

88
## Server settings
@@ -146,6 +146,19 @@ kilobytes.
146146

147147
This value is set to `50` kilobytes by default.
148148

149+
### `prefetchTimeout`
150+
151+
When `prefetch` is enabled, this value sets the number of milliseconds
152+
before The Lounge gives up attempting to fetch a link. This can be useful
153+
if you've increased the `prefetchMaxImageSize`.
154+
155+
Take caution, however, that an inordinately large value may lead to
156+
performance issues or even a denial of service, since The Lounge will not
157+
be able to clean up outgoing connections as quickly. Usually the default
158+
value is appropriate, so only change it if necessary.
159+
160+
This value is set to `5000` milliseconds by default.
161+
149162
### `fileUpload`
150163

151164
Allow uploading files to the server hosting The Lounge.
@@ -206,7 +219,7 @@ The available keys for the `defaults` object are:
206219
- `nick`: Nick name. Percent signs (`%`) will be replaced by random
207220
numbers from 0 to 9. For example, `Guest%%%` may become `Guest123`.
208221
- `username`: User name.
209-
- `realname`: Real name.
222+
- `realname`: Real name displayed by some clients. Defaults to the nick if set to ""
210223
- `leaveMessage`: Network specific leave message (overrides global leaveMessage)
211224
- `join`: Comma-separated list of channels to auto-join once connected.
212225

@@ -393,7 +406,7 @@ The available keys for the `ldap` object are:
393406

394407
- `rootPassword`: Password of The Lounge LDAP system user.
395408

396-
- `ldapFilter`: it is set to `"(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com)"`
409+
- `filter`: it is set to `"(&(objectClass=person)(memberOf=ou=accounts,dc=example,dc=com))"`
397410
by default.
398411

399412
- `base`: LDAP search base (search only within this node). It is set

0 commit comments

Comments
 (0)