From e16dbf03e737fcb30d12cf7f472cbc06819b6a05 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Fri, 26 Aug 2022 20:18:59 +0200 Subject: [PATCH] Add NGINX tips in the doc --- docs/install.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/install.md b/docs/install.md index bbf3bce..2a6a85c 100644 --- a/docs/install.md +++ b/docs/install.md @@ -159,6 +159,26 @@ server { } ``` +### NGINX config tips + +Enable HTTP2 (which is disabled by default): + +```nginx +server { + # [...] + listen [::]:443 ssl http2; +} +``` + +Tweak `/etc/nginx/nginx.conf` and add gzip compression for ActivityPub responses: + +```nginx +http { + # [...] + gzip_types text/plain text/css application/json application/javascript application/activity+json application/octet-stream; +} +``` + ## YunoHost edition [YunoHost](https://yunohost.org/) support is a work in progress.