Mastodon nginx: route /.well-known/host-meta, fix /packs
This commit is contained in:
parent
3bbad5b5fc
commit
ac9b281350
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue