Skip to content

Commit

Permalink
FIX: Allow .otf fonts to be delivered via cdn (#10787)
Browse files Browse the repository at this point in the history
The discourse-fonts package includes NotoSansJP (bold and regular), but
it is an OTF font, and it results in 404s in CDN requests.
  • Loading branch information
pmusaraj committed Sep 30, 2020
1 parent f5c4594 commit fb57fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/nginx.sample.conf
Expand Up @@ -5,7 +5,7 @@ types {

upstream discourse {
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)
Expand Down Expand Up @@ -112,7 +112,7 @@ server {
break;
}

location ~* (fonts|assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {
location ~* (fonts|assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico|otf)$ {
expires 1y;
add_header Cache-Control public,immutable;
add_header Access-Control-Allow-Origin *;
Expand Down

0 comments on commit fb57fe7

Please sign in to comment.