2018-10-04 19:18:26 +03:00
|
|
|
#
|
2019-02-01 16:39:33 +02:00
|
|
|
# Copyright © 2016-2019 The Thingsboard Authors
|
2018-10-04 19:18:26 +03:00
|
|
|
#
|
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
|
# limitations under the License.
|
|
|
|
|
#
|
|
|
|
|
|
2018-10-18 13:47:42 +03:00
|
|
|
spring.main.web-environment: false
|
2018-10-04 19:18:26 +03:00
|
|
|
spring.main.web-application-type: none
|
|
|
|
|
|
2018-11-09 20:05:53 +02:00
|
|
|
# Clustering properties
|
|
|
|
|
cluster:
|
|
|
|
|
# Unique id for this node (autogenerated if empty)
|
|
|
|
|
node_id: "${CLUSTER_NODE_ID:}"
|
|
|
|
|
|
2018-10-04 19:18:26 +03:00
|
|
|
# MQTT server parameters
|
2018-10-12 16:22:38 +03:00
|
|
|
transport:
|
|
|
|
|
mqtt:
|
|
|
|
|
bind_address: "${MQTT_BIND_ADDRESS:0.0.0.0}"
|
|
|
|
|
bind_port: "${MQTT_BIND_PORT:1883}"
|
|
|
|
|
adaptor: "${MQTT_ADAPTOR_NAME:JsonMqttAdaptor}"
|
|
|
|
|
timeout: "${MQTT_TIMEOUT:10000}"
|
|
|
|
|
netty:
|
2018-10-22 08:34:44 +03:00
|
|
|
leak_detector_level: "${NETTY_LEAK_DETECTOR_LVL:DISABLED}"
|
2018-10-12 16:22:38 +03:00
|
|
|
boss_group_thread_count: "${NETTY_BOSS_GROUP_THREADS:1}"
|
|
|
|
|
worker_group_thread_count: "${NETTY_WORKER_GROUP_THREADS:12}"
|
|
|
|
|
max_payload_size: "${NETTY_MAX_PAYLOAD_SIZE:65536}"
|
|
|
|
|
# MQTT SSL configuration
|
|
|
|
|
ssl:
|
|
|
|
|
# Enable/disable SSL support
|
|
|
|
|
enabled: "${MQTT_SSL_ENABLED:false}"
|
|
|
|
|
# SSL protocol: See http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#SSLContext
|
|
|
|
|
protocol: "${MQTT_SSL_PROTOCOL:TLSv1.2}"
|
|
|
|
|
# Path to the key store that holds the SSL certificate
|
|
|
|
|
key_store: "${MQTT_SSL_KEY_STORE:mqttserver.jks}"
|
|
|
|
|
# Password used to access the key store
|
|
|
|
|
key_store_password: "${MQTT_SSL_KEY_STORE_PASSWORD:server_ks_password}"
|
|
|
|
|
# Password used to access the key
|
|
|
|
|
key_password: "${MQTT_SSL_KEY_PASSWORD:server_key_password}"
|
|
|
|
|
# Type of the key store
|
|
|
|
|
key_store_type: "${MQTT_SSL_KEY_STORE_TYPE:JKS}"
|
2018-10-22 08:34:44 +03:00
|
|
|
sessions:
|
2018-10-29 18:31:14 +02:00
|
|
|
inactivity_timeout: "${TB_TRANSPORT_SESSIONS_INACTIVITY_TIMEOUT:300000}"
|
|
|
|
|
report_timeout: "${TB_TRANSPORT_SESSIONS_REPORT_TIMEOUT:30000}"
|
2018-10-22 08:34:44 +03:00
|
|
|
rate_limits:
|
|
|
|
|
enabled: "${TB_TRANSPORT_RATE_LIMITS_ENABLED:false}"
|
|
|
|
|
tenant: "${TB_TRANSPORT_RATE_LIMITS_TENANT:1000:1,20000:60}"
|
|
|
|
|
device: "${TB_TRANSPORT_RATE_LIMITS_DEVICE:10:1,300:60}"
|
2018-11-02 15:45:28 +02:00
|
|
|
json:
|
|
|
|
|
# Cast String data types to Numeric if possible when processing Telemetry/Attributes JSON
|
|
|
|
|
type_cast_enabled: "${JSON_TYPE_CAST_ENABLED:true}"
|
2018-11-16 19:10:10 +02:00
|
|
|
# Maximum allowed string value length when processing Telemetry/Attributes JSON (0 value disables string value length check)
|
|
|
|
|
max_string_value_length: "${JSON_MAX_STRING_VALUE_LENGTH:0}"
|
2018-10-04 19:18:26 +03:00
|
|
|
|
|
|
|
|
kafka:
|
|
|
|
|
enabled: true
|
|
|
|
|
bootstrap.servers: "${TB_KAFKA_SERVERS:localhost:9092}"
|
|
|
|
|
acks: "${TB_KAFKA_ACKS:all}"
|
|
|
|
|
retries: "${TB_KAFKA_RETRIES:1}"
|
|
|
|
|
batch.size: "${TB_KAFKA_BATCH_SIZE:16384}"
|
|
|
|
|
linger.ms: "${TB_KAFKA_LINGER_MS:1}"
|
|
|
|
|
buffer.memory: "${TB_BUFFER_MEMORY:33554432}"
|
2018-10-08 14:27:02 +03:00
|
|
|
transport_api:
|
|
|
|
|
requests_topic: "${TB_TRANSPORT_API_REQUEST_TOPIC:tb.transport.api.requests}"
|
|
|
|
|
responses_topic: "${TB_TRANSPORT_API_RESPONSE_TOPIC:tb.transport.api.responses}"
|
2018-10-05 18:52:59 +03:00
|
|
|
max_pending_requests: "${TB_TRANSPORT_MAX_PENDING_REQUESTS:10000}"
|
|
|
|
|
max_requests_timeout: "${TB_TRANSPORT_MAX_REQUEST_TIMEOUT:10000}"
|
|
|
|
|
response_poll_interval: "${TB_TRANSPORT_RESPONSE_POLL_INTERVAL_MS:25}"
|
|
|
|
|
response_auto_commit_interval: "${TB_TRANSPORT_RESPONSE_AUTO_COMMIT_INTERVAL_MS:100}"
|
2018-10-08 14:27:02 +03:00
|
|
|
rule_engine:
|
2018-10-05 18:52:59 +03:00
|
|
|
topic: "${TB_RULE_ENGINE_TOPIC:tb.rule-engine}"
|
2018-10-09 14:16:08 +03:00
|
|
|
notifications:
|
|
|
|
|
topic: "${TB_TRANSPORT_NOTIFICATIONS_TOPIC:tb.transport.notifications}"
|
|
|
|
|
poll_interval: "${TB_TRANSPORT_NOTIFICATIONS_POLL_INTERVAL_MS:25}"
|
|
|
|
|
auto_commit_interval: "${TB_TRANSPORT_NOTIFICATIONS_AUTO_COMMIT_INTERVAL_MS:100}"
|