From 4d03b67b765733e27c270a7cc696fb7df2745fbd Mon Sep 17 00:00:00 2001 From: Dominik Matic Date: Tue, 11 Mar 2025 12:02:36 +0100 Subject: [PATCH 1/3] move magento2 OS HMV section to hypernode-managed-vhosts and link to it --- ...onfigure-remote-storage-for-magento-2-x.md | 25 ++---------------- .../nginx/hypernode-managed-vhosts.md | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 23 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 1e73f286..5054da0e 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 @@ -95,29 +95,8 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is ## Serving assets from your S3 bucket -To serve media assets directly from your S3 bucket, you need to adjust your Nginx configuration. -Fortunately, `hypernode-manage-vhosts` simplifies this process for you. -If you're using Hypernode's object storage solution, simply run the following command for the relevant vhosts: - -```bash -hmv example.com --object-storage -``` - -### Using a custom object storage solution - -If you're using a custom storage provider, such as Amazon S3, you'll need to specify the bucket name and URL manually: - -```bash -hmv example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com -``` - -### Switching back to Hypernode defaults - -If you previously set a custom bucket and URL but want to revert to Hypernode's default object storage, use the `--object-storage-defaults` flag: - -```bash -hmv example.com --object-storage-defaults -``` +To serve media assets directly from your S3 bucket, you need to adjust your nginx configuration. +Fortunately, `hypernode-manage-vhosts` ([simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md)). ### Configuring Amazon S3 bucket policies diff --git a/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md b/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md index 0c0e9b79..503a18d4 100644 --- a/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md +++ b/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md @@ -84,6 +84,32 @@ Once the command is processed you could list all the vhosts to check if Varnish To disable Varnish for a vhost, use the following command: `hypernode-manage-vhosts example.com --disable-varnish` +## Object Storage and Hypernode Managed Vhosts + +If you're using object storage with Magento 2.x or Shopware 6.x you can use HMV to adjust your nginx config to serve assets directly from your bucket. + +If you're using Hypernode's object storage solution, simply run the following command for the relevant vhosts: + +```bash +hmv example.com --object-storage +``` + +### Using a custom object storage solution + +If you're using a custom storage provider, such as Amazon S3, you'll need to specify the bucket name and URL manually: + +```bash +hmv example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com +``` + +### Switching back to Hypernode defaults + +If you previously set a custom bucket and URL but want to revert to Hypernode's default object storage, use the `--object-storage-defaults` flag: + +```bash +hmv example.com --object-storage-defaults +``` + ## Managing Configuration Files ### Vhost-specific configuration From 5d172a8af4fda84fd5342dff906e79c991ec4dd5 Mon Sep 17 00:00:00 2001 From: Dominik Matic Date: Tue, 11 Mar 2025 12:06:14 +0100 Subject: [PATCH 2/3] update link to point to specific header --- .../how-to-configure-remote-storage-for-magento-2-x.md | 2 +- 1 file changed, 1 insertion(+), 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 5054da0e..eb3ae326 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 @@ -96,7 +96,7 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is ## Serving assets from your S3 bucket To serve media assets directly from your S3 bucket, you need to adjust your nginx configuration. -Fortunately, `hypernode-manage-vhosts` ([simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md)). +Fortunately, `hypernode-manage-vhosts` ([simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md#object-storage-and-hypernode-managed-vhosts)). ### Configuring Amazon S3 bucket policies From 4c5d0402cb191b1b8eadb78c7fcdae87389a43b7 Mon Sep 17 00:00:00 2001 From: Dominik Matic Date: Tue, 11 Mar 2025 13:16:57 +0100 Subject: [PATCH 3/3] replace hmv with hypernode-manage-vhosts and fix link --- .../how-to-configure-remote-storage-for-magento-2-x.md | 2 +- docs/hypernode-platform/nginx/hypernode-managed-vhosts.md | 6 +++--- 2 files changed, 4 insertions(+), 4 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 eb3ae326..3a528896 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 @@ -96,7 +96,7 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is ## Serving assets from your S3 bucket To serve media assets directly from your S3 bucket, you need to adjust your nginx configuration. -Fortunately, `hypernode-manage-vhosts` ([simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md#object-storage-and-hypernode-managed-vhosts)). +Fortunately, `hypernode-manage-vhosts` [simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md#object-storage-and-hypernode-managed-vhosts). ### Configuring Amazon S3 bucket policies diff --git a/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md b/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md index 503a18d4..9c2c1aac 100644 --- a/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md +++ b/docs/hypernode-platform/nginx/hypernode-managed-vhosts.md @@ -91,7 +91,7 @@ If you're using object storage with Magento 2.x or Shopware 6.x you can use HMV If you're using Hypernode's object storage solution, simply run the following command for the relevant vhosts: ```bash -hmv example.com --object-storage +hypernode-manage-vhosts example.com --object-storage ``` ### Using a custom object storage solution @@ -99,7 +99,7 @@ hmv example.com --object-storage If you're using a custom storage provider, such as Amazon S3, you'll need to specify the bucket name and URL manually: ```bash -hmv example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com +hypernode-manage-vhosts example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com ``` ### Switching back to Hypernode defaults @@ -107,7 +107,7 @@ hmv example.com --object-storage --object-storage-bucket mybucket --object-stora If you previously set a custom bucket and URL but want to revert to Hypernode's default object storage, use the `--object-storage-defaults` flag: ```bash -hmv example.com --object-storage-defaults +hypernode-manage-vhosts example.com --object-storage-defaults ``` ## Managing Configuration Files