9.8.3. Clair STOMP 配置字段
以下简单文本介绍的消息协议(STOMP)字段可用于 Clair 通知程序环境。
| .stomp | 对象 | 为 STOMP 交付配置通知程序。 |
|---|---|---|
| .stomp.direct | 布尔值 |
如果为 |
| .stomp.rollup | 整数 |
如果 |
| .stomp.callback | 字符串 |
如果 |
| .stomp.destination | 字符串 | 向其发送通知的 STOMP 目的地。 |
| .stomp.uris | 字符串 | 以优先级顺序连接到的一个或多个 STOMP 代理的列表。 |
| .stomp.tls | 对象 | 配置了到 STOMP 代理的 TLS/SSL 连接。 |
| .stomp.tls.root_ca | 字符串 | 可以读取 root CA 的文件系统路径。
[注意] ==== Clair 还尊重 |
| .stomp.tls.cert | 字符串 | 可以读取 TLS/SSL 证书的文件系统路径。 |
| .stomp.tls.key | 字符串 | 可以读取 TLS/SSL 私钥的文件系统路径。 |
| .stomp.user | 字符串 | 配置 STOMP 代理的登录详情。 |
| .stomp.user.login | 字符串 | 要连接的 STOMP 登录。 |
| .stomp.user.passcode | 字符串 | 要连接的 STOMP 传递码。 |
STOMP 配置示例
以下示例显示了 Clair 的假设 STOMP 配置。
STOMP 配置示例
# ...
notifier:
# ...
stomp:
desitnation: "notifications"
direct: false
callback: "http://clair-notifier/notifier/api/v1/notifications"
login:
login: "username"
passcode: "passcode"
tls:
root_ca: "optional/path/to/rootca"
cert: "madatory/path/to/cert"
key: "madatory/path/to/key"
# ...