Document way to do notice compatibility routes with Nginx reverse-proxy instead

This commit is contained in:
Sean King 2022-07-16 23:44:37 -06:00
commit 64e16e6a4b
No known key found for this signature in database
GPG key ID: 510C52BACD6E7257
5 changed files with 13 additions and 66 deletions

View file

@ -81,6 +81,19 @@ server {
proxy_pass http://phoenix;
}
# Uncomment this if you want notice compatibility routes for frontends like Soapbox.
# location ~ /@.+/([^/]+) {
# proxy_pass http://phoenix/notice/$1;
# }
#
# location ~ /@.+/posts/([^/]+) {
# proxy_pass http://phoenix/notice/$1;
# }
#
# location ~ /.+/status/([^/]+) {
# proxy_pass http://phoenix/notice/$1;
# }
location ~ ^/(media|proxy) {
proxy_cache pleroma_media_cache;
slice 1m;