Soapbox nginx: fix ld+json ActivityPub route

This commit is contained in:
Alex Gleason 2022-05-11 16:29:59 -05:00
parent f43c87e7b7
commit 96ec0fa64f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -3,6 +3,10 @@
# #
# Edit this file to change occurences of "example.com" to your own domain. # Edit this file to change occurences of "example.com" to your own domain.
# Note: if this line causes an error, move it to nginx.conf
# https://github.com/nginx-proxy/nginx-proxy/issues/1365#issuecomment-668421898
map_hash_bucket_size 128;
map $http_upgrade $connection_upgrade { map $http_upgrade $connection_upgrade {
default upgrade; default upgrade;
'' close; '' close;
@ -12,8 +16,7 @@ map $http_upgrade $connection_upgrade {
map $http_accept $activitypub_location { map $http_accept $activitypub_location {
default /index.html; default /index.html;
"application/activity+json" @proxy; "application/activity+json" @proxy;
# Increase `map_hash_bucket_size` to enable this route: 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @proxy;
# 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @proxy;
} }
upstream backend { upstream backend {