-
Notifications
You must be signed in to change notification settings - Fork 36
Shopware6 object storage docs #349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
f8d600e
6541ec5
9735ad0
09d76e5
70cb376
8e30485
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,107 @@ | ||||||
| --- | ||||||
| myst: | ||||||
| html_meta: | ||||||
| description: Configure remote storage for Shopware 6.x. Learn how to configure | ||||||
| Shopware 6 to start storing files in your bucket. | ||||||
| title: How to Configure Remote Storage for Shopware 6.x | Hypernode | ||||||
| --- | ||||||
|
|
||||||
| # How to Configure Remote Storage for Shopware 6.x | ||||||
|
|
||||||
| Shopware 6.x supports remote storage for different types of files, allowing you to store assets such as product images, documents, and other media in an external storage service instead of the local server. | ||||||
|
|
||||||
| Using remote object storage in Shopware 6 provides several benefits, including: | ||||||
|
|
||||||
| - Offloading storage from your server, reducing the load on your server, and improving performance. | ||||||
| - 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. | ||||||
| - Allows for effortless storage capacity scaling, as you can easily increase the storage capacity of your remote storage location. | ||||||
| - Serving assets from a CDN, which can improve the performance of your website. | ||||||
|
|
||||||
| ## Configuring the application | ||||||
|
|
||||||
| Configuring Shopware 6 to start storing files in your bucket is done by modifying the the general bundle configuration file located at `config/packages/shopware.yml` in your shopware root directory. | ||||||
|
|
||||||
| **Hypernode Object Storage and other S3 compatible providers** | ||||||
|
|
||||||
| If you're using Hypernode Object Storage, you need to make sure that the configuration file contains the following: | ||||||
|
|
||||||
| ```yaml | ||||||
| shopware: | ||||||
| filesystem: | ||||||
| public: | ||||||
| type: 'amazon-s3' | ||||||
| config: | ||||||
| bucket: 'main' | ||||||
| region: 'EU' | ||||||
| endpoint: 'management url' | ||||||
| use_path_style_endpoint: true | ||||||
| credentials: | ||||||
| key: 'access key' | ||||||
| secret: 'secret key' | ||||||
|
|
||||||
| ``` | ||||||
|
|
||||||
| You can get the required management URL, access key, and secret key by running `hypernode-object-storage info` with the `--with-credentials` flag: | ||||||
|
|
||||||
| ```console | ||||||
| app@testapp ~ # hypernode-object-storage info --with-credentials | ||||||
| +--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+ | ||||||
| | UUID | Name | Plan | Hypernodes | Management URL | Access Key | Secret Key | | ||||||
| +--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+ | ||||||
| | 12345678-9012-3456-b7e3-19ab43df4a23 | testappbucket1 | OS200GB | testapp | https://example.ams.objectstore.eu | abcd1234 | abcd1234 | | ||||||
| +--------------------------------------+----------------+---------+-------------+-------------------------------------+---------------+---------------+ | ||||||
| ``` | ||||||
|
|
||||||
| **AWS S3** | ||||||
|
|
||||||
| If you're using Amazon's S3 bucket, your configuration file should include the following: | ||||||
|
||||||
| If you're using Amazon's S3 bucket, your configuration file should include the following: | |
| If you're using the AWS S3 service, your configuration file should include the following: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespasce
dominik-matic marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dominik-matic marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's just one link, I think it's better to move this one to the Configuring the application section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace