mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Add try_files directive comments to nginx.conf (#37866)
This commit is contained in:
7
dist/nginx.conf
vendored
7
dist/nginx.conf
vendored
@@ -82,31 +82,37 @@ server {
|
|||||||
location ^~ /avatars/ {
|
location ^~ /avatars/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /emoji/ {
|
location ^~ /emoji/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /headers/ {
|
location ^~ /headers/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /ocr/ {
|
location ^~ /ocr/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /packs/ {
|
location ^~ /packs/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /sounds/ {
|
location ^~ /sounds/ {
|
||||||
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
add_header Cache-Control "public, max-age=2419200, must-revalidate";
|
||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /system/ {
|
location ^~ /system/ {
|
||||||
@@ -114,6 +120,7 @@ server {
|
|||||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains";
|
||||||
add_header X-Content-Type-Options nosniff;
|
add_header X-Content-Type-Options nosniff;
|
||||||
add_header Content-Security-Policy "default-src 'none'; form-action 'none'";
|
add_header Content-Security-Policy "default-src 'none'; form-action 'none'";
|
||||||
|
# try_files $uri @mastodon;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /api/v1/streaming {
|
location ^~ /api/v1/streaming {
|
||||||
|
|||||||
Reference in New Issue
Block a user