From a02c8cf0bb911ab9d2d5089488b9bdb56059d256 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 29 Aug 2022 19:28:54 +0200 Subject: [PATCH] Fix NGINX setup instructions --- app/main.py | 2 ++ docs/install.md | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/main.py b/app/main.py index 007145b..fd8bb8e 100644 --- a/app/main.py +++ b/app/main.py @@ -80,6 +80,8 @@ _RESIZED_CACHE: MutableMapping[tuple[str, int], tuple[bytes, str, Any]] = LFUCac # TODO(ts): # Next: +# - self-destruct + move support and actions/tasks for +# - doc for prune/move/delete # - fix issue with followers from a blocked server (skip it?) # - allow to share old notes # - only show 10 most recent threads in DMs diff --git a/docs/install.md b/docs/install.md index 00448d2..bde2871 100644 --- a/docs/install.md +++ b/docs/install.md @@ -136,6 +136,11 @@ server { # [...] } +# This should be oustside the `server` block +map $http_upgrade $connection_upgrade { + default upgrade; + '' close; +} ``` Optionally, you can serve static files using NGINX directly, with an additional `location` block.