diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 222c5b39182..6fd053d5d96 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -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) @@ -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 *;