Mastodon nginx: route pghero and sidekiq to Mastodon

merge-requests/1345/head
Alex Gleason 2022-05-10 17:20:20 -05:00
rodzic 3919212196
commit 3bbad5b5fc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -75,7 +75,7 @@ server {
# Mastodon backend routes.
# These are routes to Mastodon's API and important rendered pages.
location ~ ^/(api|oauth|auth|admin|manifest.json|.well-known/webfinger|@(.+)/embed$) {
location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|.well-known/webfinger|@(.+)/embed$) {
try_files /dev/null @proxy;
}
@ -88,7 +88,7 @@ server {
# Mastodon public files.
# https://github.com/mastodon/mastodon/tree/main/public
# Take only what we need for Soapbox.
location ~ ^/(favicon.ico|browserconfig.xml|embed.js|android-chrome-192x192.png|apple-touch-icon.png|avatars/original/missing.png|headers/original/missing.png) {
location ~ ^/(assets|favicon.ico|browserconfig.xml|embed.js|android-chrome-192x192.png|apple-touch-icon.png|avatars/original/missing.png|headers/original/missing.png) {
root /home/mastodon/live/public;
add_header Cache-Control "public, max-age=31536000, immutable";
add_header Strict-Transport-Security "max-age=31536000" always;