Mastodon nginx: simplify some regexes
This commit is contained in:
parent
645c17eb81
commit
20c5519e04
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ server {
|
|||
# Mastodon public files.
|
||||
# https://github.com/mastodon/mastodon/tree/main/public
|
||||
# Take only what we need for Soapbox.
|
||||
location ~ ^/(assets|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|png)|browserconfig.xml|embed.js|android-chrome-192x192.png|apple-touch-icon.png|(avatars|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