Mastodon nginx: route pghero and sidekiq to Mastodon
This commit is contained in:
parent
3919212196
commit
3bbad5b5fc
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue