FIX: Allow fonts to be delivered via CDN

FIX: Allow fonts to be delivered via CDN

We introduced support for custom fonts which are shipped out of the /fonts directory, however we did not provide a bypass in our NGINX config.

diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf
index 18e16a2..222c5b3 100644
--- a/config/nginx.sample.conf
+++ b/config/nginx.sample.conf
@@ -112,7 +112,7 @@ server {
       break;
     }
 
-    location ~* (assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {
+    location ~* (fonts|assets|plugins|uploads)/.*\.(eot|ttf|woff|woff2|ico)$ {
       expires 1y;
       add_header Cache-Control public,immutable;
       add_header Access-Control-Allow-Origin *;

GitHub sha: f5051ec8

1 Like