Skip to content

Instantly share code, notes, and snippets.

@ncole458
Last active April 18, 2018 01:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncole458/9d7e8742a4e064b17e86773d10f49c58 to your computer and use it in GitHub Desktop.
Save ncole458/9d7e8742a4e064b17e86773d10f49c58 to your computer and use it in GitHub Desktop.
Fix Nginx fonts not working
# add below to /etc/nginx/mime.types
application/x-font-ttf ttc ttf;
application/x-font-otf otf;
application/font-woff woff;
application/font-woff2 woff2;
application/vnd.ms-fontobject eot;
# add below to /sites/available/your-site
location ~* \.(eot|otf|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment