Nginx Kubernetes Ingress does not serve .ttf or .woff files Nginx Kubernetes Ingress does not serve .ttf or .woff files kubernetes kubernetes

Nginx Kubernetes Ingress does not serve .ttf or .woff files


Some CDN services has a cors configuration that need to be configured.In my case i added a cors authorized domain on my digitalocean space.This solved on firefox and chrome.


Verify wich type of installation you have made and verify you have the nginx-config configmap. See docs

If you don't have, create one and set this in the data area:

data:  gzip_types: application/x-font-ttf application/font-woff

And if you need more gzip_type you could add too. Here are the default values.

If the problem is the gzip config like you say this will solve your problem.