Mastodon nginx: pull from Mastodon's /packs too

merge-requests/1355/head
Alex Gleason 2022-05-11 17:12:51 -05:00
rodzic 96ec0fa64f
commit 645c17eb81
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -97,11 +97,12 @@ server {
add_header Strict-Transport-Security "max-age=31536000" always;
}
# Soapbox build files.
# Soapbox & Mastodon (frontend) build files.
# New builds produce hashed filenames, so these should be cached heavily.
location /packs {
add_header Cache-Control "public, max-age=31536000, immutable";
add_header Strict-Transport-Security "max-age=31536000" always;
try_files $uri @mastodon-public;
}
# Soapbox configuration files.
@ -116,6 +117,13 @@ server {
add_header Strict-Transport-Security "max-age=31536000" always;
}
# Mastodon public files.
# https://github.com/mastodon/mastodon/tree/main/public
location @mastodon-public {
root /home/mastodon/live/public;
try_files $uri /index.html;
}
# Proxy to Mastodon's Ruby on Rails backend.
location @proxy {
proxy_set_header Host $host;