Merge branch 'mastodon-nginx' into 'develop'

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

See merge request soapbox-pub/soapbox-fe!1346
homepage-hide-logo
Alex Gleason 2022-05-10 23:03:40 +00:00
commit 92367c3495
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;
}