mastodon: Upgrade to 4.1.3 & adjust nginx config
This commit is contained in:
parent
5fd64f5dc1
commit
a6125ae80a
2 changed files with 7 additions and 7 deletions
|
@ -52,7 +52,7 @@ mastodon_elasticsearch_adjust_sysctl: true
|
|||
|
||||
# Container versions
|
||||
# renovate: depName=docker.io/tootsuite/mastodon
|
||||
mastodon_version: 4.1.2
|
||||
mastodon_version: 4.1.3
|
||||
# renovate: depName=docker.io/library/postgres
|
||||
mastodon_database_version: 15.3
|
||||
# renovate: depName=docker.io/library/redis
|
||||
|
|
|
@ -14,7 +14,7 @@ server {
|
|||
|
||||
keepalive_timeout 70;
|
||||
sendfile on;
|
||||
client_max_body_size 80m;
|
||||
client_max_body_size 99m;
|
||||
|
||||
root /usr/share/nginx/html/;
|
||||
|
||||
|
@ -28,21 +28,21 @@ server {
|
|||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml image/x-icon;
|
||||
|
||||
add_header Strict-Transport-Security "max-age=31536000";
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||
|
||||
location / {
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
|
||||
add_header Cache-Control "public, max-age=31536000, immutable";
|
||||
location ~ ^/(assets|avatars|emoji|headers|packs|shortcuts|sounds|system)/ {
|
||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
location /sw.js {
|
||||
add_header Cache-Control "public, max-age=0";
|
||||
add_header Cache-Control "public, max-age=604800, must-revalidate";
|
||||
try_files $uri @proxy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue