Skip to content

Commit

Permalink
Merge pull request Varying-Vagrant-Vagrants#6 from TwanVermeulen/master
Browse files Browse the repository at this point in the history
Allow font access from partner domain
  • Loading branch information
TwanVermeulen authored Dec 9, 2016
2 parents adc8517 + 023bdca commit 2eb7925
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions www/wordpress-homedeal/domains/homedeal.be.dev/vvv-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ server {
# Includes a basic WordPress configuration to help with the common
# rules needed by a web server to deal with WordPress properly.
include /etc/nginx/nginx-wp-common.conf;

location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
access_log off;
add_header "Cache-Control" "public";
add_header "Access-Control-Allow-Origin" "http://partners.skydreams.com.dev";
}
}

7 changes: 7 additions & 0 deletions www/wordpress-homedeal/domains/homedeal.nl.dev/vvv-nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ server {
# Includes a basic WordPress configuration to help with the common
# rules needed by a web server to deal with WordPress properly.
include /etc/nginx/nginx-wp-common.conf;

location ~* \.(?:ttf|ttc|otf|eot|woff|woff2)$ {
expires 1M;
access_log off;
add_header "Cache-Control" "public";
add_header "Access-Control-Allow-Origin" "http://partners.skydreams.com.dev";
}
}

0 comments on commit 2eb7925

Please sign in to comment.