Skip to content

Commit d7db3b1

Browse files
author
Jonathan
committed
Adding information about the path-style config
1 parent 8261e59 commit d7db3b1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,34 @@ app@abcdef-example-magweb-cml:~$ hypernode-object-storage info --with-credential
5353
+--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+
5454
```
5555

56+
Running the Magento object-storage command may not include all necessary settings in the configuration.
57+
58+
If you are using Hypernode-object-storage, you need to add the following parameters to your env.php to complete the setup:
59+
60+
```php
61+
'use_path_style_endpoint' => true,
62+
'path_style' => true,
63+
```
64+
65+
The complete and functional Magento configuration should resemble the following example:
66+
67+
```php
68+
'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+
]
80+
]
81+
],
82+
```
83+
5684
If you're using a different object storage provider, replace these values with the relevant details from your provider.
5785

5886
**AWS S3**

0 commit comments

Comments
 (0)