Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion faq/elastic-metal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ Each failover IP consists of a `/64` IPv6 subnet (18,446,744,073,709,551,616 IPv

Yes, Elastic Metal servers are delivered with an IPv6 address (/128) preconfigured.

### Can I attach Block Storage volumes to my Elastic Metal server?

Elastic Metal is not currently compatible with Block Storage, but this functionality is planned for the future.

## Windows Server specific questions

### Is Windows available on Elastic Metal?
Expand Down Expand Up @@ -184,4 +188,5 @@ After installing the OS, you can manually enable Hyper-V roles from the Roles an

### How many virtual machines can I install under Hyper-V?

Hyper-V is a hypervisor for hosting virtual machines. The Standard version of Microsoft Server allows you to install 2 virtual machines per host (per Elastic Metal server). The number of virtual machines (VM) on the Datacenter version is unlimited.
Hyper-V is a hypervisor for hosting virtual machines. The Standard version of Microsoft Server allows you to install 2 virtual machines per host (per Elastic Metal server). The number of virtual machines (VM) on the Datacenter version is unlimited.

6 changes: 3 additions & 3 deletions tutorials/deploy-saas-application/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ In all applications, you have to define settings, usually based on environment v

AWS_DEFAULT_ACL = 'public-read'
AWS_LOCATION = 'static'
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
STORAGES = 'storages.backends.s3boto3.S3Boto3Storage'
AWS_S3_SIGNATURE_VERSION = 's3v4'

AWS_S3_HOST = 's3.%s.scw.cloud' % (AWS_S3_REGION_NAME,)
AWS_S3_ENDPOINT_URL = 'https://%s' % (AWS_S3_HOST, )
STATIC_URL = '%s/%s/' % (AWS_S3_ENDPOINT_URL, AWS_LOCATION)
```

Before we look more closely at the variables we just added, further action is required. Since you have a new package (`boto3` in this case) used in the variable `STATICFILES_STORAGE`, you need to follow the next steps:
Before we look more closely at the variables we just added, further action is required. Since you have a new package (`boto3` in this case) used in the variable `STORAGES`, you need to follow the next steps:
3. Add the `boto3` package to your requirements list.
4. Add the `boto3` package (`storages` app) to the list of applications used in your Django project in your `settings.py` file.
```
Expand All @@ -94,7 +94,7 @@ In all applications, you have to define settings, usually based on environment v
- `AWS_S3_HOST` and `AWS_S3_ENDPOINT_URL` are the URLs needed to access your Object Storage bucket. They are composed of the previously defined variables.
- `AWS_LOCATION` is the folder that will be created in our Object Storage bucket for our static files
- `STATIC_URL` has changed
- `STATICFILES_STORAGE` defines the new storage class that we want to use, here standard Amazon S3 protocol storage. We now need to give values to our environment values, so that they can be correctly found by `settings.py` via `os.getenv('MY_VAR_NAME')`.
- `STORAGES` defines the new storage class that we want to use, here standard Amazon S3 protocol storage. We now need to give values to our environment values, so that they can be correctly found by `settings.py` via `os.getenv('MY_VAR_NAME')`.

<Message type="note">
Remember that Amazon S3 is a standard protocol. Even though the `boto3` library asks us to prefix variables with `AWS`, it nonetheless works perfectly with Scaleway Object Storage.
Expand Down
Loading