mirror of
https://github.com/discourse/discourse.git
synced 2025-05-01 01:24:33 +08:00
spaces matter
This commit is contained in:
parent
f68540b022
commit
ef08462b33
@ -96,7 +96,7 @@ server {
|
|||||||
|
|
||||||
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
|
location ~* assets/.*\.(eot|ttf|woff|woff2|ico)$ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public, immutable;
|
add_header Cache-Control public,immutable;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,20 +116,20 @@ server {
|
|||||||
# asset pipeline enables this
|
# asset pipeline enables this
|
||||||
# brotli_static on;
|
# brotli_static on;
|
||||||
gzip_static on;
|
gzip_static on;
|
||||||
add_header Cache-Control public, immutable;
|
add_header Cache-Control public,immutable;
|
||||||
# TODO I don't think this break is needed, it just breaks out of rewrite
|
# TODO I don't think this break is needed, it just breaks out of rewrite
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/plugins/ {
|
location ~ ^/plugins/ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public, immutable;
|
add_header Cache-Control public,immutable;
|
||||||
}
|
}
|
||||||
|
|
||||||
# cache emojis
|
# cache emojis
|
||||||
location ~ /_?emoji.*\.(png|gif|jpg|jpeg)$/ {
|
location ~ /_?emoji.*\.(png|gif|jpg|jpeg)$/ {
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public, immutable;
|
add_header Cache-Control public,immutable;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/uploads/ {
|
location ~ ^/uploads/ {
|
||||||
@ -146,7 +146,7 @@ server {
|
|||||||
proxy_set_header X-Sendfile-Type X-Accel-Redirect;
|
proxy_set_header X-Sendfile-Type X-Accel-Redirect;
|
||||||
proxy_set_header X-Accel-Mapping $public/=/downloads/;
|
proxy_set_header X-Accel-Mapping $public/=/downloads/;
|
||||||
expires 1y;
|
expires 1y;
|
||||||
add_header Cache-Control public, immutable;
|
add_header Cache-Control public,immutable;
|
||||||
|
|
||||||
## optional upload anti-hotlinking rules
|
## optional upload anti-hotlinking rules
|
||||||
#valid_referers none blocked mysite.com *.mysite.com;
|
#valid_referers none blocked mysite.com *.mysite.com;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user