summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMarie <github@yuugi.dev>2025-03-19 17:40:49 +0000
committerMarie <github@yuugi.dev>2025-03-19 17:40:49 +0000
commit65d5f1e081895ec4698cb30d8201a7675d1f8708 (patch)
tree8c2d4e19d5e71aca6b41d33a2a7582b0c7f7e5c9 /.config
parentmerge: fix notification dot (!946) (diff)
parentadjust compression fallback (diff)
downloadsharkey-65d5f1e081895ec4698cb30d8201a7675d1f8708.tar.gz
sharkey-65d5f1e081895ec4698cb30d8201a7675d1f8708.tar.bz2
sharkey-65d5f1e081895ec4698cb30d8201a7675d1f8708.zip
merge: Optionally enable websocket compression (!921)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/921 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
Diffstat (limited to '.config')
-rw-r--r--.config/example.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/example.yml b/.config/example.yml
index e18afd615b..f3caa0d676 100644
--- a/.config/example.yml
+++ b/.config/example.yml
@@ -419,3 +419,9 @@ attachLdSignatureForRelays: true
# How long to save each log entry before deleting it.
# Default: 2592000000 (1 week)
#maxAge: 2592000000
+
+# Transparently compress every websocket message on clients that support it.
+# Trades server CPU usage for reduced bandwidth usage and a faster frontend on the client.
+# If you're not using jemalloc, this may cause memory fragmentation and performance issues! (https://www.npmjs.com/package/ws#websocket-compression)
+# jemalloc is used by default in the Sharkey Docker image and may be set up manually otherwise: https://github.com/jemalloc/jemalloc/wiki/getting-started
+websocketCompression: false