kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'nginx-packs' into 'develop'
Mastodon nginx: try to fix /packs cache See merge request soapbox-pub/soapbox-fe!1551environments/review-develop-3zknud/deployments/349
commit
2b3dcbf5d1
|
@ -98,7 +98,7 @@ server {
|
||||||
location /packs {
|
location /packs {
|
||||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||||
try_files /dev/null @static-files;
|
try_files $uri @mastodon-packs;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Soapbox configuration files.
|
# Soapbox configuration files.
|
||||||
|
@ -130,6 +130,11 @@ server {
|
||||||
try_files $uri @soapbox;
|
try_files $uri @soapbox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Like Mastodon public, without fallback to SPA.
|
||||||
|
location @mastodon-packs {
|
||||||
|
root /home/mastodon/live/public;
|
||||||
|
}
|
||||||
|
|
||||||
# Soapbox & Mastodon static files.
|
# Soapbox & Mastodon static files.
|
||||||
# Try Soapbox first, Mastodon, then fall back to the SPA.
|
# Try Soapbox first, Mastodon, then fall back to the SPA.
|
||||||
location @static-files {
|
location @static-files {
|
||||||
|
|
Ładowanie…
Reference in New Issue