Setting up Object Store and CDN
Article Topics: CDN, Content, Sets
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.
MojoHost
NATS CMS is integrated with MojoHost Object Store and CDN for storing and delivering your content.
To learn more about MojoHost, visit MojoHost CDN.
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:
myusernamenatscmsbucketIn 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 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.

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.
Select "MojoHost CDN" as the Server Type.
Select "MojoHost Object Store" as the Server Location.
Insert the URL of the content server, beginning with https://
Insert the CDN Signing Secret provided by MojoHost.
Insert a number in seconds for the URL Expiration Seconds setting.
Insert the Access Key provided by MojoHost into the Key field.
Insert the Access Secret provided by MojoHost into the Secret field.
Insert the Endpoint for the Object Store, beginning with https://
Insert the Bucket name provided by MojoHost into the Bucket field.
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
Setting up a Worker using MojoHost CDNLast updated
Was this helpful?