# Setting up Object Store and CDN

*Article Topics:* [*CDN*](https://docs.toomuchmedia.com/getting-started/common-topics/cdn)*,* [*Content*](https://docs.toomuchmedia.com/getting-started/common-topics/content)*,* [*Sets*](https://docs.toomuchmedia.com/getting-started/common-topics/sets)

{% hint style="info" %}
**Please Note:** When using Object Store, TMM strongly recommends using the same company for content storage and delivery.&#x20;
{% endhint %}

Using a separate server from your NATS server to store your content, specifically a server with **Object Storage** capabilities for more efficient storage. The added benefit you gain by using a separate server is faster performance.&#x20;

## MojoHost&#x20;

NATS CMS is integrated with MojoHost Object Store and CDN for storing and delivering your content.&#x20;

To learn more about MojoHost, visit [MojoHost CDN](https://mojohost.com/hosting-services/content-delivery-network/).

### MojoHost Object Store & CDN

Before setting up a Content Server in the NATS CMS, you will need to contact MojoHost to set up an Object Store bucket. This is where your content will be served from. The name of the bucket must be unique across all clients, and so the name of the bucket should be your username followed by "natscmsbucket".

For example, if your NATS username is "myusername" you will ask MojoHost to name your Object Store Bucket:

```
myusernamenatscmsbucket
```

In addition to the S3 bucket, you will need a Content Delivery Network(CDN) from MojoHost. The MojoHost CDN will be used to deliver the content that has been processed by the [Worker ](https://docs.toomuchmedia.com/content-management/processing/cms-worker)and inserted into the Object Storage Bucket.

Ensure that MojoHost sets the following settings when creating your CDN:

* Override Origin Content Disposition - Enable
* Filename Parameter - fn
* Content Disposition Parameter - cd

Once complete, MojoHost will provide you with the following details, which you must keep to use in the setup process:

* Access Key
* Access Secret
* CDN URL
* CDN Secret

### Object Store & CDN Setup

With the information provided by MojoHost, you are now ready to set up a Content Server in the NATS CMS.

<figure><img src="https://2232071635-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWJVne6meHqGT8rzsBdod%2Fuploads%2Fv8XhyDSyshENO11c0bCO%2Fimage.png?alt=media&#x26;token=e66c3762-bfdd-4640-900d-4500b052b443" alt=""><figcaption></figcaption></figure>

1. Insert a name for the Content Server. The name inserted here is only used for listing the content server in the list of Content Servers.
2. Select "MojoHost CDN" as the **Server Type**.
3. Select "MojoHost Object Store" as the **Server Location**.
4. Insert the URL of the content server, beginning with https\://
5. Insert the CDN Signing Secret provided by MojoHost.
6. Insert a number in seconds for the **URL Expiration Seconds** setting.
7. Insert the Access Key provided by MojoHost into the **Key** fiel&#x64;**.**
8. Insert the Access Secret provided by MojoHost into the **Secret** field.
9. Insert the Endpoint for the Object Store, beginning with https\://
10. Insert the Bucket name provided by MojoHost into the **Bucket** field.&#x20;
11. Insert the Object Store Region.

Once completed, you will be directed to the Details page for the Content Server. Provide the example virtual host configuration to your host.

## Related Articles

{% content-ref url="../processing/setting-up-a-worker-using-mojohost-cdn" %}
[setting-up-a-worker-using-mojohost-cdn](https://docs.toomuchmedia.com/content-management/processing/setting-up-a-worker-using-mojohost-cdn)
{% endcontent-ref %}
