mirror of
https://gitee.com/270580156/weiyu.git
synced 2025-12-30 10:52:26 +00:00
Update application.properties
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# ===============================
|
||||
spring.application.name=bytedesk
|
||||
application.title=https://www.weiyuai.cn
|
||||
application.version=0.4.5
|
||||
application.version=0.5.0
|
||||
# server.host=127.0.0.1
|
||||
server.port=9003
|
||||
|
||||
@@ -30,24 +30,30 @@ bytedesk.debug=true
|
||||
# 默认管理员用户名密码
|
||||
bytedesk.email=admin@email.com
|
||||
bytedesk.password=admin
|
||||
# 创建member时,自动生成用户的密码
|
||||
# 创建/导入成员时,自动生成用户的密码
|
||||
bytedesk.password-default=123456
|
||||
# 默认管理员昵称
|
||||
bytedesk.nickname=Administrator
|
||||
# 超级管理员昵称
|
||||
bytedesk.nickname=SuperAdmin
|
||||
# system use mobile number 12345678000~12345678999 as test mobile number, verification code is 123456
|
||||
# 系统默认使用 12345678000~12345678999 作为测试手机号,验证码为123456
|
||||
# 默认管理员手机号
|
||||
bytedesk.mobile=12345678000
|
||||
# 白名单手机号默认发送短信验证码为:bytedesk.mobile-code 中设置的值,用于测试,否则随机发送6位验证码
|
||||
bytedesk.mobile-whitelist=18888888000,18888888001,18888888002,18888888003,18888888004,18888888005,18888888006
|
||||
bytedesk.mobile-whitelist=18888888000,18888888001,18888888002,18888888003,18888888004,12345678001,12345678002
|
||||
bytedesk.email-whitelist=100@email.com,101@email.com,102@email.com,001@email.com,002@email.com
|
||||
# 白名单和默认用户-手机号验证码,用于测试,否则随机发送6位验证码
|
||||
bytedesk.mobile-code=123456
|
||||
bytedesk.validate-code=123456
|
||||
# 默认生成组织昵称和唯一代码
|
||||
bytedesk.organization-name=MyCompany
|
||||
bytedesk.organization-code=bytedesk
|
||||
# bytedesk.timezone=GMT+8
|
||||
bytedesk.javaai=false
|
||||
bytedesk.pythonai=true
|
||||
bytedesk.java-ai=false
|
||||
bytedesk.python-ai=true
|
||||
# 配置邮件发送方式,默认使用javamail,可选值:javamail/aliyun
|
||||
# bytedesk.email-type=aliyun
|
||||
bytedesk.email-type=javamail
|
||||
# 是否支持注册,默认不允许注册
|
||||
bytedesk.enable-registration=false
|
||||
|
||||
# ===============================
|
||||
#=bytedesk cors config
|
||||
@@ -70,7 +76,7 @@ bytedesk.jwt-refresh-token-expiration=5184000000
|
||||
#=bytedesk cache config
|
||||
# ===============================
|
||||
# 0: no cache, 1: caffeine cache, 2: caffeine + redis cache
|
||||
bytedesk.cache-level=2
|
||||
bytedesk.cache-level=0
|
||||
bytedesk.cache-prefix=bytedeskim
|
||||
# cache.caffeine.maximumSize=1000
|
||||
# cache.caffeine.expireAfterWriteSeconds=5
|
||||
@@ -82,15 +88,19 @@ bytedesk.redis-stream-key=bytedeskim:stream
|
||||
#=bytedesk upload config
|
||||
# ===============================
|
||||
bytedesk.upload-type=local
|
||||
# 注意后面没有 '/'
|
||||
bytedesk.upload-dir=uploader
|
||||
# 注意后面没有 '/'
|
||||
bytedesk.upload-url=http://127.0.0.1:9003
|
||||
# bytedesk.upload-url=http://192.168.0.102:9003
|
||||
|
||||
# ===============================
|
||||
#=bytedesk kbase config
|
||||
# ===============================
|
||||
# theme: default/eduport/social/kbdoc
|
||||
bytedesk.kbase.theme=default
|
||||
|
||||
bytedesk.kbase.html-path=helpcenter
|
||||
# bytedesk.kbase.template-path=classpath:/templates/ftl/kbase
|
||||
bytedesk.kbase.api-url=http://127.0.0.1:9003
|
||||
|
||||
# ===============================
|
||||
#=bytedesk ip2region config
|
||||
@@ -102,7 +112,7 @@ bytedesk.kbase.theme=default
|
||||
#=com.bytedesk.socket module
|
||||
# ===============================
|
||||
bytedesk.socket.host=0.0.0.0
|
||||
bytedesk.socket.port=9883
|
||||
# bytedesk.socket.port=9883
|
||||
bytedesk.socket.websocket-port=9885
|
||||
bytedesk.socket.leak-detector-level=SIMPLE
|
||||
bytedesk.socket.parent-event-loop-group-thread-count=1
|
||||
@@ -125,76 +135,12 @@ bytedesk.push.apns.bundle-id=com.kefux.im
|
||||
bytedesk.push.apns.p12-url=123.p12
|
||||
bytedesk.push.apns.p12-password=123456
|
||||
|
||||
# ===============================
|
||||
# 文件上传类型:
|
||||
# 上传到本地:simple
|
||||
# 上传到阿里云:aliyun
|
||||
# ===============================
|
||||
|
||||
# # 本地存储文件
|
||||
# #upload.type=simple
|
||||
# upload.dir.path=upload
|
||||
# upload.url.prefix=http://192.168.0.100:8000/
|
||||
# #upload.url.prefix=http://127.0.0.1:8000/
|
||||
# #upload.url.prefix=http://10.0.2.2:8000/
|
||||
# # 阿里云OSS
|
||||
# upload.type=aliyun
|
||||
# # 腾讯云cos
|
||||
# # upload.type=tencent
|
||||
# # 自定义文件夹前缀,用于阿里云和腾讯云
|
||||
upload.dir.prefix=
|
||||
|
||||
#
|
||||
# ===============================
|
||||
# = 阿里云OSS访问密钥
|
||||
# ===============================
|
||||
aliyun.region.id=123
|
||||
aliyun.access.key.id=123
|
||||
aliyun.access.key.secret=123
|
||||
|
||||
# 阿里云OSS服务相关配置
|
||||
# OSS的endpoint,这里是华南地区(也就是深圳)
|
||||
aliyun.oss.endpoint=https://oss-cn-shenzhen.aliyuncs.com
|
||||
aliyun.oss.base.url=https://bytedesk.oss-cn-shenzhen.aliyuncs.com
|
||||
# 这是创建的bucket
|
||||
aliyun.oss.bucket.name=123
|
||||
# 这里已经把自己的域名映射到bucket地址了。需要设置域名绑定,设置域名CNAME(暂不使用)
|
||||
aliyun.oss.img.domain=123
|
||||
|
||||
# 阿里云短信服务的签名,可以在控制台找到,如是中文,请转为Unicode
|
||||
aliyun.sms.signname=123
|
||||
#阿里云短信服务的模板Code,可以在控制台找到
|
||||
# 萝卜丝验证码
|
||||
aliyun.sms.templatecode=123
|
||||
# 验证码
|
||||
aliyun.sms.liangshibao.signname=123
|
||||
aliyun.sms.liangshibao.templatecode=123
|
||||
# 预约提醒
|
||||
aliyun.sms.liangshibao.appointcode=123
|
||||
#
|
||||
# ===============================
|
||||
# = 腾讯云COS对象存储访问密钥
|
||||
# ===============================
|
||||
# 创建bucket并需要在此bucket下创建文件夹:apns/development(二级文件夹), apns/production(二级文件夹), avatars, images, voices, files
|
||||
# 存储桶所属地域
|
||||
tencent.bucket.location=ap-shanghai
|
||||
# 存储桶名称
|
||||
tencent.bucket.name=
|
||||
# 访问域名
|
||||
tencent.bucket.domain=
|
||||
|
||||
#API密钥管理获取
|
||||
tencent.appid=
|
||||
tencent.secretid=
|
||||
tencent.secretkey=
|
||||
|
||||
|
||||
# ===============================
|
||||
#=logging
|
||||
# https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.core
|
||||
# 五种level:TRACE、DEBUG、INFO、WARN和ERROR
|
||||
# ===============================
|
||||
# 会打印sqllog
|
||||
# 会打印sqlLog
|
||||
# debug=true
|
||||
# trace=true
|
||||
logging.level.web=DEBUG
|
||||
@@ -273,6 +219,7 @@ spring.datasource.druid.filter.stat.slow-sql-millis=1
|
||||
# https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.data
|
||||
# ===============================
|
||||
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/bytedesk_im
|
||||
# spring.datasource.url=jdbc:mysql://mysql:3306/bytedesk_im # docker
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=r8FqfdbWUaN3
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
@@ -287,7 +234,7 @@ spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl
|
||||
# ===============================
|
||||
# spring.datasource.url=jdbc:postgresql://127.0.0.1:5433/bytedesk_im
|
||||
# spring.datasource.username=postgres
|
||||
# spring.datasource.password=C8aJEVCCvSA1VFi8
|
||||
# spring.datasource.password=r8FqfdbWUaN3
|
||||
# spring.datasource.driver-class-name=org.postgresql.Driver
|
||||
# spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
|
||||
# spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
|
||||
@@ -312,6 +259,7 @@ spring.jackson.time-zone=GMT+8
|
||||
# https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.cache
|
||||
# ===============================
|
||||
# disable caching: none, https://docs.spring.io/spring-boot/docs/3.2.0/reference/htmlsingle/#io.caching.provider.none
|
||||
# https://docs.spring.io/spring-boot/reference/io/caching.html
|
||||
# https://docs.spring.io/spring-framework/reference/integration/cache/annotations.html#cache-spel-context
|
||||
spring.cache.type=none
|
||||
# spring.cache.type=redis
|
||||
@@ -328,8 +276,9 @@ spring.cache.redis.key-prefix=bytedeskim:
|
||||
# ===============================
|
||||
spring.data.redis.database=0
|
||||
spring.data.redis.host=127.0.0.1
|
||||
# spring.data.redis.host=redis/redis-stack-server # docker
|
||||
spring.data.redis.port=6379
|
||||
spring.data.redis.password=C8aJEVCCvSA1VFi8
|
||||
spring.data.redis.password=qfRxz3tVT8Nh
|
||||
# disable redis repository
|
||||
spring.data.redis.repositories.enabled=false
|
||||
# redis pool config
|
||||
@@ -357,9 +306,10 @@ spring.data.rest.return-body-on-update=true
|
||||
#=spring-boot-starter-data-security
|
||||
# ===============================
|
||||
# properties: https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.security
|
||||
# spring.security.user.name=user
|
||||
# spring.security.user.password=123456
|
||||
|
||||
# spring.security.basic.path=/swagger-ui.html
|
||||
# spring.security.basic.enabled=true
|
||||
# spring.security.user.name=admin@email.com
|
||||
# spring.security.user.password=admin
|
||||
|
||||
# ===============================
|
||||
#=spring-boot-starter-actuator
|
||||
@@ -391,14 +341,12 @@ spring.boot.admin.client.url=http://127.0.0.1:9003
|
||||
# http://127.0.0.1:9003/swagger-ui/index.html
|
||||
# http://127.0.0.1:9003/v3/api-docs
|
||||
# ===============================
|
||||
|
||||
springdoc.show-actuator=false
|
||||
springdoc.swagger-ui.enabled=true
|
||||
springdoc.swagger-ui.path=/index.html
|
||||
springdoc.api-docs.enabled=true
|
||||
springdoc.api-docs.path=/v3/api-docs
|
||||
|
||||
|
||||
# ===============================
|
||||
#=spring-boot-devtools
|
||||
# https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.devtools
|
||||
@@ -420,8 +368,33 @@ logging.level.org.apache.activemq.audit.message=WARN
|
||||
|
||||
# ===============================
|
||||
# = spring-boot-starter-artemis
|
||||
# = jms artemis
|
||||
# https://spring.io/guides/gs/messaging-jms
|
||||
# https://docs.spring.io/spring-boot/reference/messaging/jms.html
|
||||
# https://activemq.apache.org/components/artemis/documentation/latest/index.html
|
||||
# spring.jms.pub-sub-domain=true
|
||||
# ===============================
|
||||
# spring.artemis.mode=embedded
|
||||
spring.artemis.mode=embedded
|
||||
# spring.artemis.mode=native
|
||||
# spring.artemis.broker-url=tcp://127.0.0.1:61617
|
||||
# spring.artemis.user=admin
|
||||
# spring.artemis.password=admin
|
||||
|
||||
# ===============================
|
||||
# spring mail
|
||||
# https://springdoc.cn/spring-boot/application-properties.html#appendix.application-properties.mail
|
||||
# ===============================
|
||||
spring.mail.host=smtp.qq.com
|
||||
spring.mail.port=465
|
||||
# spring.mail.username=
|
||||
# spring.mail.password=
|
||||
spring.mail.data-encoding=UTF-8
|
||||
spring.mail.protocol=smtps
|
||||
spring.mail.properties.mail.smtp.connectiontimeout=5000
|
||||
spring.mail.properties.mail.smtp.timeout=3000
|
||||
spring.mail.properties.mail.smtp.auth=true
|
||||
spring.mail.properties.mail.smtp.starttls.enable=true
|
||||
spring.mail.properties.mail.smtp.starttls.required=true
|
||||
|
||||
#
|
||||
# ===============================
|
||||
@@ -481,14 +454,6 @@ spring.servlet.multipart.max-request-size=100MB
|
||||
# not working?
|
||||
# spring.session.redis.namespace=bytedeskim
|
||||
|
||||
# ===============================
|
||||
#= 跟模块 spring-boot-docker-compose 配合使用
|
||||
# https://springdoc.cn/docker-compose-support-spring-boot/
|
||||
# ===============================
|
||||
# spring.docker.compose.enabled=true
|
||||
# spring.docker.compose.file=docker-compose.yaml
|
||||
# spring.docker.compose.profiles.active=myprofile
|
||||
|
||||
#
|
||||
# ===============================
|
||||
# = ai
|
||||
@@ -528,6 +493,9 @@ spring.ai.mistralai.embedding.enabled=false
|
||||
spring.ai.qianfan.chat.enabled=false
|
||||
spring.ai.qianfan.embedding.enabled=false
|
||||
|
||||
# bedrock
|
||||
spring.ai.bedrock.converse.chat.enabled=false
|
||||
|
||||
# moonshot
|
||||
# https://docs.spring.io/spring-ai/reference/api/chat/moonshot-chat.html
|
||||
spring.ai.moonshot.chat.enabled=true
|
||||
@@ -557,14 +525,11 @@ spring.ai.zhipuai.api-key=f03410085cb038ec41098ae7ca6ef047.TrJMIwAULDG12345
|
||||
spring.ai.zhipuai.chat.options.model=glm-4-flash
|
||||
spring.ai.zhipuai.chat.options.temperature=0.7
|
||||
#
|
||||
# ollama list:
|
||||
# mistral
|
||||
# qwen:7b
|
||||
# llama2
|
||||
# ollama:
|
||||
# https://docs.spring.io/spring-ai/reference/api/chat/ollama-chat.html
|
||||
spring.ai.ollama.base-url=http://127.0.0.1:11434
|
||||
spring.ai.ollama.chat.enabled=false
|
||||
spring.ai.ollama.chat.options.model=mistral
|
||||
spring.ai.ollama.chat.enabled=true
|
||||
spring.ai.ollama.chat.options.model=qwen:7b
|
||||
spring.ai.ollama.chat.options.temperature=0.7
|
||||
# spring.ai.ollama.chat.options.numa=false
|
||||
#
|
||||
@@ -592,34 +557,19 @@ spring.ai.vectorstore.redis.prefix=bytedesk_vs_prefix:
|
||||
spring.liquibase.enabled=true
|
||||
spring.liquibase.change-log=classpath:db/changelog/master.xml
|
||||
|
||||
|
||||
# ===============================
|
||||
# = oauth
|
||||
# github:https://github.com/settings/applications/new
|
||||
# ===============================
|
||||
bytedesk.oauth.github.clientid=clientid
|
||||
bytedesk.oauth.github.clientsecret=clientid
|
||||
|
||||
# ===============================
|
||||
# = third projects config
|
||||
# ===============================
|
||||
bytedesk.liangshibao.host=http://127.0.0.1:9003
|
||||
bytedesk.liangshibao.path=/Users/ningjinpeng/Desktop/git/private/liangshibao/web/
|
||||
|
||||
# ===============================
|
||||
# = 百度翻译
|
||||
# https://fanyi-api.baidu.com/doc/21
|
||||
# ===============================
|
||||
translate.baidu.appid=placeholder
|
||||
translate.baidu.key=placeholder
|
||||
|
||||
# 抖音开放平台
|
||||
# https://developer.open-douyin.com/webapp/aw74cmav4symty7z/setting/app-info
|
||||
douyin.client.key=placeholder
|
||||
douyin.client.secret=placeholder
|
||||
|
||||
# ===============================
|
||||
# = docker compose
|
||||
# docker compose up # when the application starts
|
||||
# docker compose down # when the application shuts down
|
||||
#= 跟模块 spring-boot-docker-compose 配合使用
|
||||
# https://spring.io/guides/topicals/spring-boot-docker
|
||||
# https://spring.io/blog/2023/06/21/docker-compose-support-in-spring-boot-3-1
|
||||
# https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-docker-compose
|
||||
# https://hub.docker.com/r/jackning/bytedesk
|
||||
# https://springdoc.cn/docker-compose-support-spring-boot/
|
||||
# https://docs.spring.io/spring-boot/docs/3.2.0/reference/htmlsingle/#features.docker-compose
|
||||
# ===============================
|
||||
spring.docker.compose.enabled=false
|
||||
spring.docker.compose.file=docker-compose.yaml
|
||||
# spring.docker.compose.file=compose.yaml
|
||||
# spring.docker.compose.enabled=true
|
||||
# spring.docker.compose.profiles.active=myprofile
|
||||
|
||||
Reference in New Issue
Block a user