Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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#object-storage-and-hypernode-managed-vhosts)).

### Configuring Amazon S3 bucket policies

Expand Down
26 changes: 26 additions & 0 deletions docs/hypernode-platform/nginx/hypernode-managed-vhosts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down