From d7db3b1bbdc8cd282b2d56943c646888a0eb1770 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 22 Jul 2025 10:34:00 +0200 Subject: [PATCH 1/3] Adding information about the path-style config --- ...onfigure-remote-storage-for-magento-2-x.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md index bd56c277..f41575c8 100644 --- a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md +++ b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md @@ -53,6 +53,34 @@ app@abcdef-example-magweb-cml:~$ hypernode-object-storage info --with-credential +--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+ ``` +Running the Magento object-storage command may not include all necessary settings in the configuration. + +If you are using Hypernode-object-storage, you need to add the following parameters to your env.php to complete the setup: + +```php +'use_path_style_endpoint' => true, + 'path_style' => true, +``` + +The complete and functional Magento configuration should resemble the following example: + +```php +'remote_storage' => [ + 'driver' => 'aws-s3', + 'config' => [ + 'endpoint' => '', + 'bucket' => 'main', + 'region' => 'eu', + 'use_path_style_endpoint' => true, + 'path_style' => true, + 'credentials' => [ + 'key' => '', + 'secret' => '' + ] + ] + ], +``` + If you're using a different object storage provider, replace these values with the relevant details from your provider. **AWS S3** From f2fff0bd66757578033dcc12bbae2b44b9e3a5da Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 22 Jul 2025 11:37:48 +0200 Subject: [PATCH 2/3] update based on feedback --- ...onfigure-remote-storage-for-magento-2-x.md | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md index f41575c8..40e29102 100644 --- a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md +++ b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md @@ -32,16 +32,6 @@ bin/magento setup:config:set system/media_storage_configuration/media_storage 0 If you're using Hypernode Object Storage or a different provider than AWS S3, you need to specify the `--remote-storage-endpoint` option. -```bash -bin/magento setup:config:set \ - --remote-storage-driver="aws-s3" \ - --remote-storage-bucket="main" \ - --remote-storage-region="EU" \ - --remote-storage-key="abcd1234" \ - --remote-storage-secret="1234abcd" \ - --remote-storage-endpoint="https://my-s3-compatible.endpoint.com" -``` - 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`. ```console @@ -53,36 +43,47 @@ app@abcdef-example-magweb-cml:~$ hypernode-object-storage info --with-credential +--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+ ``` -Running the Magento object-storage command may not include all necessary settings in the configuration. +If you're using a different object storage provider, replace these values with the relevant details from your provider. -If you are using Hypernode-object-storage, you need to add the following parameters to your env.php to complete the setup: + +```bash +bin/magento setup:config:set \ + --remote-storage-driver="aws-s3" \ + --remote-storage-bucket="main" \ + --remote-storage-region="EU" \ + --remote-storage-key="abcd1234" \ + --remote-storage-secret="1234abcd" \ + --remote-storage-endpoint="https://my-s3-compatible.endpoint.com" +``` + +Running the Magento object storage command may not include all necessary settings in the configuration. + +If you're using Hypernode object storage, you need to add the following parameters to your env.php to complete the setup: ```php 'use_path_style_endpoint' => true, - 'path_style' => true, +'path_style' => true, ``` The complete and functional Magento configuration should resemble the following example: ```php 'remote_storage' => [ - 'driver' => 'aws-s3', - 'config' => [ - 'endpoint' => '', - 'bucket' => 'main', - 'region' => 'eu', - 'use_path_style_endpoint' => true, - 'path_style' => true, - 'credentials' => [ - 'key' => '', - 'secret' => '' - ] + 'driver' => 'aws-s3', + 'config' => [ + 'endpoint' => '', + 'bucket' => 'main', + 'region' => 'EU', + 'use_path_style_endpoint' => true, + 'path_style' => true, + 'credentials' => [ + 'key' => '', + 'secret' => '' ] - ], + ] +], ``` -If you're using a different object storage provider, replace these values with the relevant details from your provider. - **AWS S3** If you're using an AWS S3 bucket, you only need your bucket name, AWS region, and access and secret keys. From 51ab7193a0be623bccadf9a047120ed7c8806d65 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 22 Jul 2025 11:40:50 +0200 Subject: [PATCH 3/3] Removing double newline --- .../magento-2/how-to-configure-remote-storage-for-magento-2-x.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md index 40e29102..9cb304c6 100644 --- a/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md +++ b/docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md @@ -45,7 +45,6 @@ app@abcdef-example-magweb-cml:~$ hypernode-object-storage info --with-credential If you're using a different object storage provider, replace these values with the relevant details from your provider. - ```bash bin/magento setup:config:set \ --remote-storage-driver="aws-s3" \