Files
hertzbeat/script/docker-compose/conf/application.yml
T
5ebfb48965 [monitor] notify test throw msg to front, optional spring.email config (#305)
spring.email选配,未配置spring.email前端配置邮箱告警通知返回错误消息

  spring.email选配,未配置spring.email前端配置邮箱告警通知返回错误消息

  [manager] spring.email config update

  发送报警通知的消息异常消息展示给前端

  [manager] alerter notify test throw msg to front

  [home] add tdengine limit version desc (#304)

  spring.email选配,未配置spring.email前端配置邮箱告警通知返回错误消息

  [manager] spring.email config update

  发送报警通知的消息异常消息展示给前端

  [manager] alerter notify test throw msg to front

  [home] add tdengine limit version desc

  [home] add tdengine limit version desc

Co-authored-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: emrys <1205096966@qq.com>
2022-09-25 13:40:12 +08:00

90 lines
2.6 KiB
YAML

# 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: /**
resources:
static-locations:
- classpath:/dist/
- classpath:../dist/
jackson:
default-property-inclusion: NON_EMPTY
sureness:
auths:
- digest
- basic
- jwt
---
spring:
config:
activate:
on-profile: prod
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://mysql:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false
platform: mysql
hikari:
max-lifetime: 120000
jpa:
database: mysql
hibernate:
ddl-auto: update
# 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
thymeleaf:
prefix: classpath:/templates/
check-template-location: true
cache: true
suffix: .html
#encoding: UTF-8
#content-type: text/html
mode: HTML
warehouse:
store:
td-engine:
enabled: true
driver-class-name: com.taosdata.jdbc.rs.RestfulDriver
url: jdbc:TAOS-RS://tdengine:6041/hertzbeat
username: root
password: taosdata