Skip to content

Commit fcafd9a

Browse files
committed
add new location matka-fonts
1 parent 41b6e49 commit fcafd9a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

common.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,3 +404,14 @@ location /fonts/ {
404404
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
405405
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
406406
}
407+
408+
location /matka-fonts/ {
409+
rewrite /matka-fonts/(.*) /$1 break;
410+
proxy_pass https://matkafonts.blob.core.windows.net;
411+
proxy_redirect off;
412+
proxy_set_header X-Real-IP $remote_addr;
413+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
414+
# proxy_set_header X-Forwarded-Host $host;
415+
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
416+
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
417+
}

0 commit comments

Comments
 (0)