Skip to content

Commit f2fff0b

Browse files
author
Jonathan
committed
update based on feedback
1 parent d7db3b1 commit f2fff0b

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

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

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ bin/magento setup:config:set system/media_storage_configuration/media_storage 0
3232

3333
If you're using Hypernode Object Storage or a different provider than AWS S3, you need to specify the `--remote-storage-endpoint` option.
3434

35-
```bash
36-
bin/magento setup:config:set \
37-
--remote-storage-driver="aws-s3" \
38-
--remote-storage-bucket="main" \
39-
--remote-storage-region="EU" \
40-
--remote-storage-key="abcd1234" \
41-
--remote-storage-secret="1234abcd" \
42-
--remote-storage-endpoint="https://my-s3-compatible.endpoint.com"
43-
```
44-
4535
For Hypernode Object Storage, use `main` as the bucket name and `EU` as the region. You can retrieve the remaining parameters by running `hypernode-object-storage info --with-credentials`.
4636

4737
```console
@@ -53,36 +43,47 @@ app@abcdef-example-magweb-cml:~$ hypernode-object-storage info --with-credential
5343
+--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+
5444
```
5545

56-
Running the Magento object-storage command may not include all necessary settings in the configuration.
46+
If you're using a different object storage provider, replace these values with the relevant details from your provider.
5747

58-
If you are using Hypernode-object-storage, you need to add the following parameters to your env.php to complete the setup:
48+
49+
```bash
50+
bin/magento setup:config:set \
51+
--remote-storage-driver="aws-s3" \
52+
--remote-storage-bucket="main" \
53+
--remote-storage-region="EU" \
54+
--remote-storage-key="abcd1234" \
55+
--remote-storage-secret="1234abcd" \
56+
--remote-storage-endpoint="https://my-s3-compatible.endpoint.com"
57+
```
58+
59+
Running the Magento object storage command may not include all necessary settings in the configuration.
60+
61+
If you're using Hypernode object storage, you need to add the following parameters to your env.php to complete the setup:
5962

6063
```php
6164
'use_path_style_endpoint' => true,
62-
'path_style' => true,
65+
'path_style' => true,
6366
```
6467

6568
The complete and functional Magento configuration should resemble the following example:
6669

6770
```php
6871
'remote_storage' => [
69-
'driver' => 'aws-s3',
70-
'config' => [
71-
'endpoint' => '',
72-
'bucket' => 'main',
73-
'region' => 'eu',
74-
'use_path_style_endpoint' => true,
75-
'path_style' => true,
76-
'credentials' => [
77-
'key' => '',
78-
'secret' => ''
79-
]
72+
'driver' => 'aws-s3',
73+
'config' => [
74+
'endpoint' => '',
75+
'bucket' => 'main',
76+
'region' => 'EU',
77+
'use_path_style_endpoint' => true,
78+
'path_style' => true,
79+
'credentials' => [
80+
'key' => '',
81+
'secret' => ''
8082
]
81-
],
83+
]
84+
],
8285
```
8386

84-
If you're using a different object storage provider, replace these values with the relevant details from your provider.
85-
8687
**AWS S3**
8788

8889
If you're using an AWS S3 bucket, you only need your bucket name, AWS region, and access and secret keys.

0 commit comments

Comments
 (0)