Mastodon nginx: route /.well-known/host-meta, fix /packs

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

Wyświetl plik

@ -1,4 +1,4 @@
# Nginx configuration for Soapbox on Mastodon.
# Nginx configuration for Soapbox atop Mastodon.
# Adapted from: https://github.com/mastodon/mastodon/blob/b4d373a3df2752d9f8bdc0d7f02350528f3789b2/dist/nginx.conf
#
# Edit this file to change occurences of "example.com" to your own domain.
@ -75,7 +75,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|.well-known/webfinger|@(.+)/embed$) {
location ~ ^/(api|oauth|auth|admin|pghero|sidekiq|manifest.json|.well-known/webfinger|.well-known/host-meta|@(.+)/embed$) {
try_files /dev/null @proxy;
}
@ -96,7 +96,7 @@ server {
# Soapbox build files.
# New builds produce hashed filenames, so these should be cached heavily.
location ~ ^/(packs|emoji) {
location /packs {
add_header Cache-Control "public, max-age=31536000, immutable";
add_header Strict-Transport-Security "max-age=31536000" always;
}