CDN
CDN Setup instructions
Last updated
CDN Setup instructions
Last updated
Ministry.Chat allows for the usage of a CDN to server static assets such as JS, CSS and images such as avatars.
If you provide a CDN prefix that is not live or incorrect you may lose access to your Ministry.Chat instance as the required assets will not be found.
By navigating to the General section of the Administration system in Ministry.Chat there are the options to provide a CDN for all assets and optionally set a separate CDN for just JS & CSS assets.
This is a string that depending on the value provided will generate different outcomes.
Enable this for serving all assets from the same CDN.
This option takes the same style input as CDN Prefix. The value provided will be applied only to JS and CSS assets.
If the situation occurs where CDN stops working or the provided values are incorrect, then there are a few work arounds to allow a fix to be implemented inside the Administration settings, which may be inaccessible.
As the front end of Ministry.Chat may be inaccessible, the backend Mongo database can be updated to remove the CDN. The following Mongo commands should reset the value to the default state.
A browser extension can be used to rewrite URLs from the CDN address to the same location as where Ministry.Chat is running. Please take care when selecting an appropriate extension for your browser.
Value
Example Url for Asset
cdn
/cdn/example-asset.js