spring.application.name=IBI
#
# meta datasource 元数据
# Druid 连接池
#
datasource.meta.name=meta
datasource.meta.driver-class-name=com.mysql.jdbc.Driver
datasource.meta.url=jdbc:mysql://localhost:3306/cboard_dev?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
datasource.meta.username=root
datasource.meta.password=xxx
datasource.meta.max-active=10
datasource.meta.min-idle=0
datasource.meta.initialSize=1
datasource.meta.breakAfterAcquireFailure=true
#
# log datasource 日志数据默认与meta元数据源一致
#
datasource.log.name=log
datasource.log.driver-class-name=${datasource.meta.driver-class-name}
datasource.log.url=${datasource.meta.url}
datasource.log.username=${datasource.meta.username}
datasource.log.password=${datasource.meta.password}
datasource.log.max-active=10
datasource.log.min-idle=0
datasource.log.initialSize=1
datasource.log.breakAfterAcquireFailure=true

# 连接端口与context
server.port=8026
server.servlet.context-path=/cboard
# https相关配置
#server.ssl.key-store=classpath:.xxxx.jks
#server.ssl.key-store-password=xxx
#server.ssl.keyStoreType=JKS

# 开启第二个监听端口用于http与https共存场景
#http.port=8027

# 对应安装目录下user-files文件夹
file.userfiles-path=user-files
spring.web.resources.static-locations=classpath:/static,classpath:/webui,classpath:/${file.userfiles-path}
spring.web.resources.cache.cachecontrol.cache-public=true
spring.web.resources.cache.cachecontrol.max-age=30d

#
# 系统运行产生文件存储地址
#
runtime.base.filePath=${user.home}/.ibi
# 在线表格写转文件存储地址, 默认目录
dataprovider.onlineTable.filePath=${runtime.base.filePath}/online-tables
# 大屏导出临时文件存储地址
export.cockpit.screenshotPath=${runtime.base.filePath}/screenshot/cockpit

admin_user_id=1

# Enable response compression 开启资源压缩
server.compression.enabled=true
# The comma-separated list of mime types that should be compressed
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json
# Compress the response only if the response size is at least 1KB
server.compression.min-response-size=1024

# Service configuratin
#【谨慎配置】维度成员查询返回结果集大小限定, 默认:2000
dimension.member.resultLimit=2000
#【谨慎配置】聚合结果集大小限制，调大会增加服务端压力, 默认:1万
dataprovider.agg.resultLimit=10000
#【谨慎配置】离线数据集缓存大小限制, 默认:30万
dataprovider.resultLimit=300000
# 交叉表是否合并表头阈值=行维数量 * 数据行数
# pivot.table.mergeLimit=500

#
# 离线数据集聚合引擎配置
#
# Inner aggregator type: h2[default], clickhouse
#aggregator.type=clickhouse
# Set batch size load size, times by 1 thousand
aggregator.batchReadSize=50
aggregator.batchLoadSize=50
# 缓存定时任务清理quartz表达式默认每日0点清空所有缓存
# aggregator.cleanJob.quartz=0 0 0 * * ?

# h2 缓存相关配置
# Storage File Syatem
# 1 默认缓存数据存储到文件 Stores data in file system
aggregator.h2.driver-class-name=org.h2.Driver
aggregator.h2.url=jdbc:h2:~/H2Data/cboard;AUTO_SERVER=TRUE;MODE=MYSQL;CASE_INSENSITIVE_IDENTIFIERS=false
# 2 切到缓存数据到内存 Stores data outside of the VM's heap - useful for large memory DBs without incurring GC costs.
#aggregator.h2.url=jdbc:h2:nioMemFS:cboard;AUTO_SERVER=TRUE;MODE=MYSQL;CASE_INSENSITIVE_IDENTIFIERS=false
aggregator.h2.username=sa
aggregator.h2.password=!QAZ2wsx
aggregator.h2.max-active=10
aggregator.h2.testWhileIdle=false

# ClickHouse 缓存相关配置当aggregator.type=clickhouse时生效
aggregator.ck.driver-class-name=ru.yandex.clickhouse.ClickHouseDriver
aggregator.ck.url=jdbc:clickhouse://xxx:8123/ibi
aggregator.ck.username=xxx
aggregator.ck.password=xxx
aggregator.ck.min-idle=1
aggregator.ck.max-active=5
aggregator.ck.testWhileIdle=false


# 看板导出、邮件发送依赖插件
pkg_puppetter=/Users/xxx/cboard/pkg-puppeteer/build/pkg-puppeter-macos
pkg.puppetter.args=-DvpWidth=1920 -DvpHeight=1080 -DvpScale=1
# 导出插件模拟请求地址
frontend.baseurl=http://localhost:8026/cboard

# Max size for export file size by Megabyte ,
# 上传文件大小控制配置，影响单个看板导出最大大小，单个交叉表最大大小，单位兆
# 注：看板大小包含图表截图，交叉表数据，不包含明细表数据
export.maxUploadSize=50
export.maxInMemorySize=4
# export.detailTable.showTitle=true

mail.smtp.host=xxxx
mail.smtp.port=25
mail.smtp.from=cboard@sina.com
mail.smtp.username=xxx@sina.com
mail.smtp.password=xxxx
#mail.smtp.ssl.checkserveridentity=false
# 邮件任务发送失败提醒 邮件任务发送失败之后会发送失败通知给邮件管理员，
# 此外，如果邮件任务所有者账号如果有配置邮箱地址，相应通知也会发送给该所有者
#mail.job.admin=aa@chuguotech.com

# formData.mango.connectionString=mongodb://peter:!QAZ2wsx@tcc2:27017


log.negativeFilter=List
log.positiveFilter=

#
# jwt configurations, support set in web page
#
#jwt.subject=ibi
# expire after hours
#jwt.expire=12
#jwt.secret=ibi.143
#jwt.prefix=ibi

session.timeoutMinutes=300


spring.security.auth.type=jdbc

#cas
#caso.client.url=http://localhost:8026
#caso.client.check=${caso.client.url}/login/cas

caso.server.url=https://tcc4:8443/cas
caso.server.login=${caso.server.url}/login
caso.server.logout=${caso.server.url}/logout

#cas RestAPI
caso.server.tgt=${caso.server.url}/v1/tickets
caso.server.validate=${caso.server.url}/serviceValidate

#OAuth2
## implicit
oauth2.implicit.url=http://tcc4:8080/oauth2/oauth/authorize?response_type=token&scope=read
oauth2.userInfo=http://tcc4:8080/oauth2/m/user_info?access_token=
oauth2.client_id=ibi-app
oauth2.client_secret=client_secret
oauth2.redirect_uri=http://localhost:8088/login.html

#LDAP
ldap.url=ldap://www.zflexldap.com:389
ldap.base=dc=zflexsoftware,dc=com
ldap.principalPattern=uid=%s,ou=users,ou=guests
# "guest1", "guest1password"

spring.devtools.remote.restart.enabled=false
spring.devtools.livereload.enabled=false
spring.devtools.restart.enabled=false

spring.cloud.nacos.discovery.enabled=false
###spring.cloud.nacos.discovery.server-addr=localhost:8848