Skip to content

Commit

Permalink
update config include
Browse files Browse the repository at this point in the history
  • Loading branch information
brunnre8 committed Apr 7, 2024
1 parent 52be432 commit fe3e08d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion _includes/config.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DO NOT EDIT THIS FILE MANUALLY.
Content for the following is generated by this script in the main repo:
https://github.com/thelounge/thelounge/blob/master/scripts/generate-config-doc.js
Last updated at 2023-12-12 16:26:27 (UTC) by Zach Bloomquist
Last updated at 2024-04-07 14:22:01 (UTC) by Reto Brunner
-->

## Server settings
Expand Down Expand Up @@ -267,6 +267,21 @@ their JSON configuration file.

This value is set to `["sqlite", "text"]` by default.

### `storagePolicy`

When the sqlite storage is in use, control the maximum storage duration.
A background task will periodically clean up messages older than the limit.

The available keys for the `storagePolicy` object are:

- `enabled`: If this is false, the cleaning task is not running.
- `maxAgeDays`: Maximum age of an entry in days.
- `deletionPolicy`: Controls what types of messages are being deleted.
Valid options are:
- `statusOnly`: Only delete message types which are status related (e.g. away, back, join, parts, mode, ctcp...)
but keep actual messages from nicks. This keeps the DB size down while retaining "precious" messages.
- `everything`: Delete everything, including messages from irc nicks

### `useHexIp`

When set to `true`, users' IP addresses will be encoded as hex.
Expand Down

0 comments on commit fe3e08d

Please sign in to comment.