Page MenuHomeDevCentral

D3137.id8001.diff
No OneTemporary

D3137.id8001.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;
@@ -32,4 +45,10 @@
location ~* \.(eot|otf|ttf|woff|woff2|css)$ {
add_header Access-Control-Allow-Origin *;
}
+
+ location /webfonts/css {
+ default_type text/css;
+ add_header Access-Control-Allow-Origin *;
+ try_files $uri $uri.$font_extension $uri/ =404;
+ }
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 07:17 (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257490
Default Alt Text
D3137.id8001.diff (1 KB)

Event Timeline