Soapbox nginx: fix ld+json ActivityPub route
This commit is contained in:
parent
f43c87e7b7
commit
96ec0fa64f
1 changed files with 5 additions and 2 deletions
|
@ -3,6 +3,10 @@
|
|||
#
|
||||
# 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 {
|
||||
default upgrade;
|
||||
'' close;
|
||||
|
@ -12,8 +16,7 @@ map $http_upgrade $connection_upgrade {
|
|||
map $http_accept $activitypub_location {
|
||||
default /index.html;
|
||||
"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 {
|
||||
|
|
Loading…
Reference in a new issue