Skip to content

Commit

Permalink
returns only static content from vshosting CDN (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
sspooky13 authored Sep 20, 2024
1 parent de1bb32 commit 4d9fec2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
2. Run `composer update shopsys/deployment`
3. Check files in mentioned pull requests and if you have any of them extended in your project, apply changes manually

## Upgrade from v3.2.4 to v3.2.5

- returns only static content from vshosting CDN ([#25](https://github.com/shopsys/deployment/pull/25))

## Upgrade from v3.2.3 to v3.2.4

- nginx app location for customer uploaded file added ([#21](https://github.com/shopsys/deployment/pull/21))
Expand Down
12 changes: 12 additions & 0 deletions kubernetes/configmap/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,19 @@ data:
}
}
location ^~ /_next/ {
try_files @storefront @storefront;
}
# disallow access to dynamic content from CDN
location ~ / {
if ($http_cdn_vshosting_real_ip != '') {
return 410;
}
if ($http_cdn_vshosting_real_ip_img != '') {
return 410;
}
try_files @storefront @storefront;
}
Expand Down

0 comments on commit 4d9fec2

Please sign in to comment.