Skip to content

Commit

Permalink
Merge pull request #166 from HSLdevcom/DT-4703
Browse files Browse the repository at this point in the history
add new location matka-fonts
  • Loading branch information
optionsome authored Aug 11, 2021
2 parents 41b6e49 + fcafd9a commit 0e84998
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,14 @@ location /fonts/ {
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
}

location /matka-fonts/ {
rewrite /matka-fonts/(.*) /$1 break;
proxy_pass https://matkafonts.blob.core.windows.net;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header X-Forwarded-Host $host;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
}

0 comments on commit 0e84998

Please sign in to comment.