Follow

(接上)

server_name 略;
ssl_protocols TLSv1.2 TLSv1.3;
略......
location ~ ^/(emoji|packs|system/accounts/avatars|system/media_attachments/files) {
limit_req zone=one;
limit_conn addr 10;
add_header Cache-Control "public, max-age=31536000, immutable";
add_header Strict-Transport-Security "max-age=31536000";
try_files $uri @proxy;
}
略......
}

Sign in to participate in the conversation
Pawoo

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!