下面是我的配置,即使它似乎已为ttf字体进行了适当配置,也无法得到投放(文件here, from fullcalendar)
[...]
http {
[...]
include /etc/nginx/mime.types;
types {
application/x-font-ttf ttf;
font/ttf ttf;
font/otf otf;
font/woff woff;
font/woff2 woff2;
application/vnd.ms-fontobject eot;
}
[...]
}
server {
proxy_set_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://ajax.googleapis.com https://use.fontawesome.com; frame-src 'self'; img-src 'self' https://via.placeholder.com data: ; style-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com https://use.fontawesome.com data: ; font-src 'self' https://themes.googleusercontent.com https://maxcdn.bootstrapcdn.com https://use.fontawesome.com data: ; form-action 'self'; upgrade-insecure-requests 'always'; object-src 'none'";
}
[...]