Mastodon nginx: rename @proxy
to @mastodon
This commit is contained in:
parent
f08da5f8f0
commit
83ae5d7cff
1 changed files with 4 additions and 4 deletions
|
@ -15,8 +15,8 @@ map $http_upgrade $connection_upgrade {
|
|||
# ActivityPub routing.
|
||||
map $http_accept $activitypub_location {
|
||||
default @soapbox;
|
||||
"application/activity+json" @proxy;
|
||||
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @proxy;
|
||||
"application/activity+json" @mastodon;
|
||||
'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' @mastodon;
|
||||
}
|
||||
|
||||
upstream backend {
|
||||
|
@ -83,7 +83,7 @@ server {
|
|||
# Mastodon backend routes.
|
||||
# These are routes to Mastodon's API and important rendered pages.
|
||||
location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|nodeinfo|.well-known/(webfinger|host-meta|nodeinfo|change-password)|@(.+)/embed$) {
|
||||
try_files /dev/null @proxy;
|
||||
try_files /dev/null @mastodon;
|
||||
}
|
||||
|
||||
# Mastodon ActivityPub routes.
|
||||
|
@ -131,7 +131,7 @@ server {
|
|||
}
|
||||
|
||||
# Proxy to Mastodon's Ruby on Rails backend.
|
||||
location @proxy {
|
||||
location @mastodon {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
|
Loading…
Reference in a new issue