diff --git a/dotCMS/src/main/resources/apps/dotema-config-v2.yml b/dotCMS/src/main/resources/apps/dotema-config-v2.yml index b3df4f3133d3..7e8d553c7c4f 100644 --- a/dotCMS/src/main/resources/apps/dotema-config-v2.yml +++ b/dotCMS/src/main/resources/apps/dotema-config-v2.yml @@ -11,26 +11,26 @@ params: hint: "Allows you to enter a JSON object that specifies how to match multiple URL patterns via RegExes with different 3rd party servers and rendering options, if required. For instance, in the following JSON object:

``` { - "config":[ + \"config\":[ { - "pattern":"/blogs/(.*)", - "url":"https://myspa.blogs.com:3000", - "options":{ - "authenticationToken":"123", - "depth":3, - "X-CONTENT-APP":"dotCMS" - } + \"pattern\":\"/blogs/(.*)\", + \"url\":\"https://myspa.blogs.com:3000\", + \"options\": { + \"authenticationToken\":\"123\", + \"depth\":3, + \"X-CONTENT-APP\":\"dotCMS\" + } }, { - "pattern":".*", - "url":"https://myspa.com:3000", - "options":{ - "authenticationToken":"456", - "depth":1, - "X-CONTENT-APP":"dotCMS" - } + \"pattern\":\".*\", + \"url\":\"https://myspa.com:3000\", + \"options\":{ + \"authenticationToken\":\"456\", + \"depth\":1, + \"X-CONTENT-APP\":\"dotCMS\" + } } - ] + ] } ```

You have a specific configuration for pages that start with '/blogs/' and a generic configuration for all other pages, i.e., '.*'. The 'options' object allows you to specify additional headers to be sent to the EMA Service. The 'authenticationToken' is an optional header in case you need a security layer for EMA requests. So, if the token sent by EMA does not equal the token in your app, the request will fail. The 'depth' attribute indicates dotCMS how many levels of related content must be returned by the API. The 'X-CONTENT-APP' is just an example of a custom header you can send to your app, so you can add your own."