이 섹션에서는 Screens as a Cloud Service에 대한 Dispatcher 구성을 설명합니다.
Screens의 게시 인스턴스에 대해 dispatcher에서 다음 필터 및 캐시 규칙을 as a Cloud Service으로 허용합니다.
## # Content Configurations
/0200 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*" }
#/0201 { /type "allow" /method '(GET|HEAD)' /url "/content/experience-fragments/*" } ## uncomment this, if you're using experience-fragments
## add any other formats required for your project here
/0202 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/dam/*" }
/0203 { /type "allow" /method 'GET' /url "/screens/channels.json" }
## # Enable clientlibs proxy servlet
/0210 { /type "allow" /method "GET" /url "/etc.clientlibs/*" }
추가 /statfileslevel "10"
끝 /cache
의 섹션 publish_farm.any
/.
이 캐시 규칙은 캐시 docroot에서 최대 10개 수준의 캐싱을 지원하며 모든 것을 무효화하는 대신 콘텐츠가 게시될 때 무효화됩니다. 콘텐츠 구조가 얼마나 깊이 설정되어 있는지 기준으로 이 수준을 변경할 수 있습니다.
다음에 추가 /invalidate
의 섹션 publish_farm.any
.
/0003 {
/glob "*.json"
/type "allow"
}
에 다음 규칙 추가 /rules
의 섹션 /cache
publish_farm.any 또는 publish_farm.any
.
## Allow Dispatcher Cache for Screens channels
/0002
{
/glob "/content/screens/*.html"
/type "allow"
}
## Allow Dispatcher Cache for Screens offline manifests
/0003
{
/glob "/content/screens/*.manifest.json"
/type "allow"
}
## Allow Dispatcher Cache for Assets
/0004
{
/glob "/content/dam/*"
/type "allow"
}
## Deny Screens Channels json
/0005
{
/glob "/screens/channels.json"
/type "deny"
}