Skip to content

Commit

Permalink
blocked dynamic content on CDN now returns 403 code (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin authored Oct 1, 2024
1 parent 4d9fec2 commit c4fea5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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.5 to v3.2.6

- blocked dynamic content on CDN now returns 403 code ([#27](https://github.com/shopsys/deployment/pull/27))

## Upgrade from v3.2.4 to v3.2.5

- returns only static content from vshosting CDN ([#25](https://github.com/shopsys/deployment/pull/25))
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/configmap/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ data:
# disallow access to dynamic content from CDN
location ~ / {
if ($http_cdn_vshosting_real_ip != '') {
return 410;
return 403;
}
if ($http_cdn_vshosting_real_ip_img != '') {
return 410;
return 403;
}
try_files @storefront @storefront;
Expand Down

0 comments on commit c4fea5c

Please sign in to comment.