You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md
+98-17Lines changed: 98 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ This can be useful for many reasons, such as:
16
16
- Offloading storage from your server, reducing the load on your server, and improving performance.
17
17
- Allows you to make use of [horizontal scaling](../../hypernode-platform/autoscaling/how-does-horizontal-autoscaling-work), as you can easily add more servers without having to worry about syncing files between them.
18
18
- Allows for effortless storage capacity scaling, as you can easily increase the storage capacity of your remote storage location.
19
+
-**Note:** Staging ports (8888, 8443) will not be available when horizontal autoscaling is enabled.
19
20
- Serving assets from a CDN, which can improve the performance of your website.
20
21
21
22
## Configuring the application
@@ -70,29 +71,109 @@ Magento's S3 implementation creates a test file called `storage.flag`, which is
70
71
71
72
## Serving assets from your S3 bucket
72
73
73
-
To start serving media assets from your S3 bucket, you need to make some adjustments to your nginx configuration.
74
+
To start serving media assets from your S3 bucket, you need to make some adjustments to your nginx configuration. Create the following file at `/data/web/nginx/example.com/server.assets.conf` for each relevant vhost:
Also make sure your S3 bucket policies are configured correctly, so that only `/media` is publicly readable. For example:
175
+
Make sure to change the string `my_bucket_name` to the name of your bucket and keep in mind that your bucket URL might be different depending on your AWS region. For example, you might need to change it from `https://$bucket.s3.amazonaws.com$uri` to `https://s3.amazonaws.com/$bucket$uri` instead.
176
+
Furthermore, ensure that your S3 bucket policies are configured correctly, so that only `/media` is publicly readable. For example:
Copy file name to clipboardExpand all lines: docs/hypernode-platform/autoscaling/pricing-for-horizontal-autoscaling.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Horizontal autoscaling pricing has two parts.
14
14
15
15
## Fixed license
16
16
17
-
The fixed license costs 25 euros per month and is added to your normal Hypernode subscription when you enable Horizontal autoscaling. If you enable it in the middle of the month, you will only pay for the remaining days of that month accordingly.
17
+
The fixed license costs 25 euros per month and is added to your normal Hypernode subscription when you enable Horizontal autoscaling.
Copy file name to clipboardExpand all lines: docs/hypernode-platform/nginx/how-to-configure-nginx-for-a-multistore.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,14 @@ You'd have to prefix the file with `varnish` instead of `server`, like `varnish.
42
42
This way these multistore requests will go through varnish and will then be rewritten accordingly with the `varnish.storecode` configuration.
43
43
```
44
44
45
+
### Use a different Store Type
46
+
47
+
Magento uses a default store type of `store`, you can change this to `website` too if this better fits your need, more information about this can be found on `MAGE_RUN_TYPE` in [the Magento 2 official documentation](https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/multi-sites/ms-overview).
48
+
49
+
```nginx
50
+
set $storetype "store";
51
+
```
52
+
45
53
### Using Subdirectories
46
54
47
55
Another option is to use subdirectories instead. Once you have added the required vhost you need to add a `server.storecode` file to the specific vhost directory (`/data/web/nginx/example.com/`) with the following content:
0 commit comments