Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3763602
D3137.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3137.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3137: Allow assets. to serve webfonts according to user agent
Attached
Detach File
Event Timeline
Log In to Comment