Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769002
D3137.id8009.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.id8009.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
Sun, Nov 24, 11:59 (12 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260132
Default Alt Text
D3137.id8009.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