Skip to content

Commit 3af5a29

Browse files
dominik-matichrithikkothari1234
authored andcommitted
apply mdformat
1 parent 862ddf7 commit 3af5a29

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
---
2-
myst:
3-
html_meta:
4-
description: Configure remote storage for Magento 2.x. Learn how to configure
5-
Magento 2 to start storing files in your bucket using a single command.
6-
title: How to Configure Remote Storage for Magento 2.x | Hypernode
7-
---
1+
______________________________________________________________________
2+
3+
## myst: html_meta: description: Configure remote storage for Magento 2.x. Learn how to configure Magento 2 to start storing files in your bucket using a single command. title: How to Configure Remote Storage for Magento 2.x | Hypernode
84

95
# How to Configure Remote Storage for Magento 2.x
106

@@ -73,6 +69,7 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is
7369
To start serving media assets from your S3 bucket, you need to make some adjustments to your nginx configuration.
7470

7571
We recommend that you create a configuration file defining the cache storage location, structure, size constraints, and cache expiration policies.
72+
7673
```bash
7774
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
7875
```
@@ -108,6 +105,7 @@ location /media {
108105
# ...
109106
}
110107
```
108+
111109
Keep in mind your bucket URL might be different depending on your AWS region. For example, you might need to change it to `https://s3.amazonaws.com/$bucket$uri` instead.
112110
Also make sure your S3 bucket policies are configured correctly, so that only `/media` is publicly readable. For example:
113111

0 commit comments

Comments
 (0)