Files
hertzbeat/script/docker-compose/hertzbeat-postgresql-iotdb/conf/application.yml
T
vinciandtomsun28 1d29ac3d7d support postgresql store meta data instead of h2 database (#828)
support postgresql store meta data instead of h2 database
add docker-compose file for postgresql
add related docs

  Update home docs start postgresql-change.md

Co-authored-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: vinci <55838224+vinci-897@users.noreply.github.com>

  Update home docs start postgresql-change.md

Co-authored-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: vinci <55838224+vinci-897@users.noreply.github.com>

  Update home docs start postgresql-change.md

Co-authored-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: vinci <55838224+vinci-897@users.noreply.github.com>

  Update home docs start postgresql-change.md

Co-authored-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: vinci <55838224+vinci-897@users.noreply.github.com>

---------

Signed-off-by: vinci <55838224+vinci-897@users.noreply.github.com>
Co-authored-by: tomsun28 <tomsun28@outlook.com>
2023-04-01 23:10:41 +08:00

133 lines
3.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
server:
port: 1157
spring:
application:
name: ${HOSTNAME:@hertzbeat@}${PID}
profiles:
active: prod
mvc:
static-path-pattern: /**
jackson:
default-property-inclusion: ALWAYS
web:
resources:
static-locations:
- classpath:/dist/
- classpath:../dist/
thymeleaf:
prefix: classpath:/templates/
check-template-location: true
cache: true
suffix: .html
mode: HTML
management:
health:
mail:
enabled: off
endpoints:
web:
exposure:
include:
- 'metrics'
- 'health'
- 'env'
enabled-by-default: on
sureness:
auths:
- digest
- basic
- jwt
jwt:
secret: 'CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R
LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9
8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5
dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp'
---
spring:
config:
activate:
on-profile: prod
datasource:
driver-class-name: org.postgresql.Driver
username: root
password: 123456
url: jdbc:postgresql://postgresql:5432/hertzbeat
hikari:
max-lifetime: 120000
jpa:
database: postgresql
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
# Not Require, Please config if you need email notify
# 非必填:不使用邮箱作为警告通知可以去掉spring.mail配置
# mail:
# # Attention: this is mail server address.
# # 请注意此为邮件服务器地址:qq邮箱为 smtp.qq.com qq企业邮箱为 smtp.exmail.qq.com
# host: smtp.qq.com
# username: example@qq.com
# # Attention: this is not email account password, this requires an email authorization code
# # 请注意此非邮箱账户密码 此需填写邮箱授权码
# password: xxqzvuqbnqvbbdac
# port: 465
# default-encoding: UTF-8
# properties:
# mail:
# smtp:
# socketFactoryClass: javax.net.ssl.SSLSocketFactory
# ssl:
# enable: true
warehouse:
store:
# store history metrics data, enable only one below
# 存储历史数据方式, 下方只能enabled启用一种方式
jpa:
enabled: false
expire-time: 1h
iot-db:
enabled: true
host: iotdb
rpc-port: 6667
username: root
password: root
# org.dromara.hertzbeat.warehouse.config.IotDbVersion: V_0_13 || V_1_0
# 如果你使用docker-compose-1.0.yaml, 不要忘记修i该version为V_1_0
version: V_0_13
query-timeout-in-ms: -1
# 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期)
# data expire time, unit:ms, default '7776000000'(90 days, -1:never expire)
expire-time: '7776000000'
# store real-time metrics data, enable only one below
# 存储实时数据方式, 下方只能enabled启用一种方式
memory:
enabled: true
init-size: 1024
redis:
enabled: false
host: 127.0.0.1
port: 6379
password: 123456