Skip to content

Commit 631ef5d

Browse files
authored
Merge pull request #348 from ByteInternet/object-storage-docs-improvements-pt-2
move magento2 OS HMV section to hypernode-managed-vhosts.md and link to it
2 parents c5a003e + 4c5d040 commit 631ef5d

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

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

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,29 +95,8 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is
9595

9696
## Serving assets from your S3 bucket
9797

98-
To serve media assets directly from your S3 bucket, you need to adjust your Nginx configuration.
99-
Fortunately, `hypernode-manage-vhosts` simplifies this process for you.
100-
If you're using Hypernode's object storage solution, simply run the following command for the relevant vhosts:
101-
102-
```bash
103-
hmv example.com --object-storage
104-
```
105-
106-
### Using a custom object storage solution
107-
108-
If you're using a custom storage provider, such as Amazon S3, you'll need to specify the bucket name and URL manually:
109-
110-
```bash
111-
hmv example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com
112-
```
113-
114-
### Switching back to Hypernode defaults
115-
116-
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:
117-
118-
```bash
119-
hmv example.com --object-storage-defaults
120-
```
98+
To serve media assets directly from your S3 bucket, you need to adjust your nginx configuration.
99+
Fortunately, `hypernode-manage-vhosts` [simplifies this process for you](../../hypernode-platform/nginx/hypernode-managed-vhosts.md#object-storage-and-hypernode-managed-vhosts).
121100

122101
### Configuring Amazon S3 bucket policies
123102

docs/hypernode-platform/nginx/hypernode-managed-vhosts.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,32 @@ Once the command is processed you could list all the vhosts to check if Varnish
8484

8585
To disable Varnish for a vhost, use the following command: `hypernode-manage-vhosts example.com --disable-varnish`
8686

87+
## Object Storage and Hypernode Managed Vhosts
88+
89+
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.
90+
91+
If you're using Hypernode's object storage solution, simply run the following command for the relevant vhosts:
92+
93+
```bash
94+
hypernode-manage-vhosts example.com --object-storage
95+
```
96+
97+
### Using a custom object storage solution
98+
99+
If you're using a custom storage provider, such as Amazon S3, you'll need to specify the bucket name and URL manually:
100+
101+
```bash
102+
hypernode-manage-vhosts example.com --object-storage --object-storage-bucket mybucket --object-storage-url https://example_url.com
103+
```
104+
105+
### Switching back to Hypernode defaults
106+
107+
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:
108+
109+
```bash
110+
hypernode-manage-vhosts example.com --object-storage-defaults
111+
```
112+
87113
## Managing Configuration Files
88114

89115
### Vhost-specific configuration

0 commit comments

Comments
 (0)