Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769872
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
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
index 8ba86f9..0d2fa48 100644
--- a/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
+++ b/roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
@@ -1,35 +1,57 @@
# -------------------------------------------------------------
# Webserver
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Site: assets.nasqueron.org
# License: Trivial work, not eligible to copyright
# Source file: roles/webserver-legacy/nginx/files/vhosts/nasqueron.org/assets.conf
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# 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;
server_name assets.nasqueron.org;
include includes/tls;
ssl_certificate /usr/local/etc/letsencrypt/live/assets.nasqueron.org/fullchain.pem;
ssl_certificate_key /usr/local/etc/letsencrypt/live/assets.nasqueron.org/privkey.pem;
include includes/letsencrypt;
root /var/wwwroot/nasqueron.org/assets;
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/x-diff
Expires
Mon, Nov 25, 17:34 (8 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257569
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment