Page MenuHomeDevCentral

D3137.diff
No OneTemporary

D3137.diff

diff --git a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
--- a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
+++ b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
@@ -14,6 +14,19 @@
# and will be lost if the state is redeployed.
# </auto-generated>
+# -------------------------------------------------------------
+# Fonts by user-agent
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+map $http_user_agent $font_extension {
+ ~Mozilla with-woff2;
+ default with-ttf;
+}
+
+# -------------------------------------------------------------
+# assets.nasqueron.org
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
server {
listen 80;
listen [::]:80;
@@ -29,7 +42,16 @@
index index.html index.php index.htm;
- location ~* \.(eot|otf|ttf|woff|woff2|css)$ {
+ location / {
+ location ~* \.(eot|otf|ttf|woff|woff2|css|js|json)$ {
+ add_header Access-Control-Allow-Origin *;
+ }
+ }
+
+ location /webfonts/css {
+ default_type text/css;
add_header Access-Control-Allow-Origin *;
+ add_header Assets-Font-Format $font_extension always;
+ try_files $uri $uri.$font_extension $uri/ =404;
}
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 00:51 (16 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2256759
Default Alt Text
D3137.diff (1 KB)

Event Timeline