Skip to content

Commit ce30129

Browse files
dominik-matichrithikkothari1234
authored andcommitted
something like this?
1 parent 3af5a29 commit ce30129

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is
6868

6969
To start serving media assets from your S3 bucket, you need to make some adjustments to your nginx configuration.
7070

71-
We recommend that you create a configuration file defining the cache storage location, structure, size constraints, and cache expiration policies.
71+
We recommend that you create a configuration file `/data/web/nginx/http.asset_proxy_cache.conf` defining the cache storage location, structure, size constraints, and cache expiration policies.
7272

73-
```bash
74-
echo "proxy_cache_path /data/var/nginx-asset-cache levels=1:2 keys_zone=asset_cache:10m max_size=1g inactive=1w;" > /data/web/nginx/http.asset_proxy_cache.conf
73+
```nginx
74+
proxy_cache_path /data/var/nginx-asset-cache levels=1:2 keys_zone=asset_cache:10m max_size=1g inactive=1w;
7575
```
7676

7777
Then update your nginx configuration in the following manner.
@@ -93,7 +93,7 @@ location /media {
9393
proxy_hide_header "Set-Cookie";
9494
proxy_ignore_headers "Set-Cookie";
9595
96-
# only include the following if you followed the previous step
96+
# include the following if you defined proxy_cache_path previously
9797
proxy_cache_key "$bucket$uri";
9898
proxy_cache_valid 200 302 7d;
9999
proxy_cache_methods GET HEAD;

0 commit comments

Comments
 (0)