Dispatcher 是 Adobe Experience Manager 的缓存和/或负载平衡工具。
下页提供了为AEM Screens项目配置调度程序的指南。
如果调度程序可用,可以通过在调度程序规则中过滤来防止与注册servlet的连接。
如果没有调度程序,请禁用OSGi组件列表中的注册servlet。
在为AEM Screens项目配置调度程序之前,您必须事先了解Dispatcher。
有关详细信息,请参阅配置Dispatcher。
按照以下步骤为AEM Screens项目配置调度程序。
如果要将多个发布实例与调度程序一起使用,则必须更新dispatcher.any
文件。
/stickyConnections {
/paths
{
"/content/screens"
"/home/users/screens"
"/libs/granite/csrf/token.json"
}
}
在/clientheaders
部分添加以下内容:
X-Requested-With
X-SET-HEARTBEAT
X-REQUEST-COMMAND
要配置Screens过滤器,请将以下内容添加到/filter。
## AEM Screens Filters
## # Login, Ping and Device Configurations
/0200 { /type "allow" /method "POST" /url "/libs/granite/core/content/login.validate/j_security_check" }
/0201 { /type "allow" /method "GET" /url "/libs/granite/csrf/token.json" }
/0202 { /type "allow" /method "GET" /url "/content/screens/svc.json" }
/0203 { /type "allow" /method "GET" /url "/content/screens/svc.ping.json" }
/0204 { /type "allow" /method "GET" /url "/content/screens/svc.config.json" }
## # Device Dashboard Configurations
/0210 { /type "allow" /method '(GET|POST)' /url "/home/users/screens/*/devices/*/profile_screens.preferences.json" }
/0211 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.logs.json" }
/0212 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.statusinfo.json" }
/0213 { /type "allow" /method "POST" /url "/home/users/screens/*/devices/*/profile_screens.screenshot.json" }
## # Content Configurations
/0220 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*" }
/0221 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*/jcr:content/*/offline-config_*.zip" }
/0222 { /type "allow" /method '(GET|HEAD)' /url '/var/contentsync/content/screens/.+/jcr:content/.+/offline-config_.*\.[0-9]+\.zip' }
禁用/content/screens路径的调度程序缓存。
Screens播放器使用经过身份验证的会话,因此调度程序不缓存任何屏幕播放器请求channels/assets
。
要为资产启用缓存,以便从调度程序缓存提供资产,您必须:
/cache
部分添加/allowAuthorization 1
/cache
的/rules
部分/0000
{
/glob "*"
/type "allow"
}
/0001
{
# Disable Dispatcher Cache for Screens channels
/glob "/content/screens/*.html"
/type "deny"
}
/0002
{
# Disable Dispatcher Cache for Screens offline manifests
/glob "/content/screens/*.json"
/type "deny"
}
/0003
{ # Disable Dispatcher Cache for Screens devices json
/glob "/home/users/screens/*.json"
/type "deny"
}