fiware - PERSEO_NOTICES_PATH='/notices',PERSEO_RULES_PATH='/rules' 从 Cep 创建订阅 2 Orion 以及如何在 Orion 和 Cep 之间通知规则和订阅
问题描述
我想创建一个从 PERSEO CEP 到 Orion CB 的订阅,以便在属性更改时 Perseo Cep 抛出一个规则。如何使用这 3 个指令: - PERSEO_NOTICES_PATH='/notices', - PERSEO_RULES_PATH='/rules' - MAX_AGE
In - MAX_AGE 我想将它设置为永远持续很多年。
perseo-core: image: fiware/perseo-core 主机名: perseo-core container_name: fiware-perseo-core depends_on: - mongo-db - orion 网络: - smartcity 端口: - "8080:8080" 环境: - PERSEO_FE_URL= http: //perseo-fe:9090 - MAX_AGE=9999
perseo 前沿:
图片:telefonicaiot/perseo-fe
image: fiware/perseo
hostname: perseo-fe
container_name: fiware-perseo-fe
networks:
- smartcity
ports:
- "9090:9090"
depends_on:
- perseo-core
environment:
- PERSEO_ENDPOINT_HOST=perseo-core
- PERSEO_ENDPOINT_PORT=8080
- PERSEO_MONGO_HOST=mongo-db
- PERSEO_MONGO_URL=http://mongo-db:27017
- PERSEO_MONGO_ENDPOINT=mongo-db:27017
- PERSEO_ORION_URL=http://orion:1026/
- PERSEO_LOG_LEVEL=debug
- PERSEO_CORE_URL=http://perseo-core:8080
- PERSEO_SMTP_SECURE=true
- PERSEO_MONGO_USER:"root"
- PERSEO_MONGO_PASSWORD:"example"
- PERSEO_SMTP_HOST=x
- PERSEO_SMTP_PORT=25
- PERSEO_SMTP_AUTH_USER=x
- PERSEO_SMTP_AUTH_PASS=x
- PERSEO_NOTICES_PATH='/notices'
- PERSEO_RULES_PATH='/rules'
解决方案
在创建规则时,当我发送规则时,我有http://perseo-coreip:8080/perseo-core/rules并且它不正确,
正确的是:http://perseo-fe-ip:9090/rules,它的工作原理。
将规则存储在 mongodb 中并正确触发规则。
推荐阅读
- python - 使用python从带有javascript的网页中抓取数据
- ruby - 模拟库函数在上下文块下无法正常工作?
- python - JPEG 压缩期间颜色的微小变化
- python - 为什么在使用 multiprocessing.Process 和共享内存时内存使用量会突然飙升?
- django - 将 django-treebeard 模型与另一个 django 模型作为外键链接的正确方法是什么?
- spring-boot - 当我向 spring-security 的内置 /login 提交 post 请求时,得到响应“出现意外错误 (type=Not Found, status=404)
- c++ - 如何通过字符串动态调用类函数
- wordpress - 以编程方式打开“块设置”
- html - 有没有办法在不提交表单的情况下通过单击按钮或发布请求来填写表单值?
- ruby-on-rails - 如何使用 Shrine 将服务器磁盘上的文件上传到 S3 并公开?