mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow .otf fonts to be delivered via cdn (#10787)
The discourse-fonts package includes NotoSansJP (bold and regular), but it is an OTF font, and it results in 404s in CDN requests.
This commit is contained in:
parent
f5c4594f6d
commit
fb57fe7e36
@ -5,7 +5,7 @@ types {
|
|||||||
|
|
||||||
upstream discourse {
|
upstream discourse {
|
||||||
server unix:/var/www/discourse/tmp/sockets/nginx.http.sock;
|
server unix:/var/www/discourse/tmp/sockets/nginx.http.sock;
|
||||||
server unix:/var/www/discourse/tmp/sockets/nginx.https.sock;
|
server unix:/var/www/discourse/tmp/sockets/nginx.https.sock;
|
||||||
}
|
}
|
||||||
|
|
||||||
# inactive means we keep stuff around for 1440m minutes regardless of last access (1 week)
|
# inactive means we keep stuff around for 1440m minutes regardless of last access (1 week)
|
||||||
@ -112,7 +112,7 @@ server {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* (fonts|assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {
|
location ~* (fonts|assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico|otf)$ {
|
||||||
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 *;
|
||||||
|
Loading…
Reference in New Issue
Block a user