wso2 - 如何在 WSO2 APIM Analytic 3.0.0 中配置 SSL?
问题描述
我在 Docker 上使用 WSO2 APIM ( source am ) 和 WSO2 APIM Analytic ( source worker和source dashboard )。
我正在寻找更改 WSO2 Analytic 证书的解决方案。
我知道这个新版本,我们需要配置deployment.yaml 文件。但这似乎很难理解。而且我不知道我需要配置哪个元素。有两个可疑元素,它们具有 keystore 属性:
databridge.config:
# No of worker threads to consume events
# THIS IS A MANDATORY FIELD
workerThreads: 10
# Maximum amount of messages that can be queued internally in MB
# THIS IS A MANDATORY FIELD
maxEventBufferCapacity: 10000000
# Queue size; the maximum number of events that can be stored in the queue
# THIS IS A MANDATORY FIELD
eventBufferSize: 2000
# Keystore file path
# THIS IS A MANDATORY FIELD
keyStoreLocation : ${sys:carbon.home}/resources/security/wso2carbon.jks
# Keystore password
# THIS IS A MANDATORY FIELD
keyStorePassword : wso2carbon
# Session Timeout value in mins
# THIS IS A MANDATORY FIELD
clientTimeoutMin: 30
# Data receiver configurations
# THIS IS A MANDATORY FIELD
dataReceivers:
-
# Data receiver configuration
dataReceiver:
# Data receiver type
# THIS IS A MANDATORY FIELD
type: Thrift
# Data receiver properties
properties:
tcpPort: '7611'
sslPort: '7711'
-
# Data receiver configuration
dataReceiver:
# Data receiver type
# THIS IS A MANDATORY FIELD
type: Binary
# Data receiver properties
properties:
tcpPort: '9611'
sslPort: '9711'
tcpReceiverThreadPoolSize: '100'
sslReceiverThreadPoolSize: '100'
hostName: 0.0.0.0
和
wso2.transport.http:
transportProperties:
- name: "server.bootstrap.socket.timeout"
value: 60
- name: "client.bootstrap.socket.timeout"
value: 60
- name: "latency.metrics.enabled"
value: true
listenerConfigurations:
- id: "default-https"
host: "0.0.0.0"
port: 9643
scheme: https
keyStoreFile: "${carbon.home}/resources/security/wso2carbon.jks"
keyStorePassword: wso2carbon
certPass: wso2carbon
那么我究竟应该配置什么?
非常感谢。
解决方案
您应该能够按如下方式实现它。
1) 对于工人资料
databridge.config:
&
listenerConfigurations : id: "msf4j-https"
2) 对于仪表板配置文件
listenerConfigurations: id: "default-https"
推荐阅读
- node.js - sh:1:rimraf:实时服务器上的权限被拒绝问题
- c# - 在 foreach 循环中为对象赋值
- php - 为什么 $conigf['quality'] 参数不能与 png 文件一起使用,但在 codeigniter 中上传图像时与 jpg 一起使用很棒?
- python - 如何将 django 管理员更改列表导出为 csv
- geoserver - 我可以在 GeoServer 中打开 HDF4 或 5 文件吗?
- mysql - 带有 DATE_ADD() 函数的语法错误的 SQL 查询(已编辑)
- reactjs - reactjs钩子中页面刷新时丢失身份验证状态
- python - 尝试为 Google 存储收集 Google 默认凭据时出现 DefaultCredentialsError
- arrays - 如何在 PowerPoint 中使用 VBA 将用户窗体文本框中输入的变量转换为模块中的数组文本?
- tcp - F-stack Client 未连接到 F-stack Server