Fix NGINX setup instructions

This commit is contained in:
Thomas Sileo 2022-08-29 19:28:54 +02:00
parent ee5265f4dd
commit a02c8cf0bb
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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.