mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 12:39:05 +08:00
chore(nacos.properties): 更新配置文件,优化注释和设置
This commit is contained in:
1 parent
f3738c4e11
commit
0a661a3dc3
1 file changed
+45
-45
@@ -1,90 +1,90 @@
|
||||
spring.application.name=@project.artifactId@
|
||||
# Nacos ????????? ?????????? PigxNacosApplication.java ??????
|
||||
# Nacos 控制台端口,修改请在 PigxNacosApplication.java 启动类中才有效
|
||||
nacos.console.port=18080
|
||||
# Nacos ????????
|
||||
# Nacos 服务端主端口
|
||||
nacos.server.main.port=8848
|
||||
# ?????
|
||||
# 数据库设置
|
||||
spring.sql.init.platform=mysql
|
||||
db.num=1
|
||||
db.url.0=jdbc:mysql://${MYSQL_HOST:pigx-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pigxx_config}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
||||
db.user=root
|
||||
db.password=root
|
||||
# nacos ????????????? spring.datasource ????
|
||||
# nacos 会自动装配数据源,所以排除 spring.datasource 自动配置
|
||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
|
||||
# ?? spring boot admin ??
|
||||
spring.boot.admin.client.url=http://pig-monitor:5001
|
||||
# 配置 spring boot admin 客户端
|
||||
spring.boot.admin.client.url=http://pigx-monitor:5001
|
||||
spring.boot.admin.client.username=pig
|
||||
spring.boot.admin.client.password=pig
|
||||
spring.boot.admin.client.instance.service-host-type=ip
|
||||
#*************** ???????? ***************#
|
||||
# Prometheus ????
|
||||
#*************** 监控相关配置 ***************#
|
||||
# Prometheus 监控配置
|
||||
#management.endpoints.web.exposure.include=prometheus
|
||||
# ElasticSearch ???? - ???
|
||||
# ElasticSearch 监控配置 - 已禁用
|
||||
management.elastic.metrics.export.enabled=false
|
||||
# InfluxDB ???? - ???
|
||||
# InfluxDB 监控配置 - 已禁用
|
||||
management.influx.metrics.export.enabled=false
|
||||
#*************** ???????? ***************#
|
||||
# Nacos ??????????
|
||||
#*************** 配置中心相关 ***************#
|
||||
# Nacos 配置推送最大重试次数
|
||||
nacos.config.push.maxRetryTime=50
|
||||
#*************** ???????? ***************#
|
||||
# ???????
|
||||
#*************** 命名服务相关 ***************#
|
||||
# 空服务自动清理
|
||||
nacos.naming.empty-service.auto-clean=true
|
||||
nacos.naming.empty-service.clean.initial-delay-ms=50000
|
||||
nacos.naming.empty-service.clean.period-time-ms=30000
|
||||
#*************** Nacos Web ????? ***************#
|
||||
# Nacos ????????
|
||||
#*************** Nacos Web 相关配置 ***************#
|
||||
# Nacos 服务端上下文路径
|
||||
nacos.server.contextPath=/nacos
|
||||
#*************** ???????? ***************#
|
||||
# ??????
|
||||
#*************** 日志相关配置 ***************#
|
||||
# 开启访问日志
|
||||
server.tomcat.accesslog.enabled=true
|
||||
# ?????????????
|
||||
# 访问日志保留天数配置
|
||||
server.tomcat.accesslog.max-days=30
|
||||
# ??????
|
||||
# 访问日志格式
|
||||
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
|
||||
# ??????
|
||||
# 日志基础目录
|
||||
server.tomcat.basedir=file:.
|
||||
#*************** API ???? ***************#
|
||||
# ????????
|
||||
#*************** API 错误处理 ***************#
|
||||
# 错误信息显示设置
|
||||
server.error.include-message=ALWAYS
|
||||
#*************** Nacos ????? ***************#
|
||||
# Nacos ????????
|
||||
#*************** Nacos 控制台配置 ***************#
|
||||
# Nacos 控制台上下文路径
|
||||
nacos.console.contextPath=
|
||||
# Nacos ??????????
|
||||
# Nacos 控制台远程服务上下文路径
|
||||
nacos.console.remote.server.context-path=/nacos
|
||||
#*************** ???????? ***************#
|
||||
# ???? URL
|
||||
#*************** 安全相关配置 ***************#
|
||||
# 安全忽略 URL
|
||||
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
|
||||
# ??????
|
||||
# 认证系统类型
|
||||
nacos.core.auth.system.type=nacos
|
||||
# ????
|
||||
# 开启认证
|
||||
nacos.core.auth.enabled=false
|
||||
# ?? API ????
|
||||
# 启用 API 访问权限
|
||||
nacos.core.auth.admin.enabled=true
|
||||
# ??? API ????
|
||||
# 启用控制台 API 认证
|
||||
nacos.core.auth.console.enabled=true
|
||||
# ????????
|
||||
# 开启认证缓存
|
||||
nacos.core.auth.caching.enabled=true
|
||||
# ????????? (? nacos.core.auth.enabled=true ???)
|
||||
# 服务器身份认证 (当 nacos.core.auth.enabled=true 时生效)
|
||||
nacos.core.auth.server.identity.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
|
||||
nacos.core.auth.server.identity.value=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
|
||||
# Nacos ??????
|
||||
# Nacos 令牌相关配置
|
||||
nacos.core.auth.plugin.nacos.token.cache.enable=false
|
||||
nacos.core.auth.plugin.nacos.token.expire.seconds=18000
|
||||
# ?????? (Base64 ??)
|
||||
# 认证密钥 (Base64 编码)
|
||||
nacos.core.auth.plugin.nacos.token.secret.key=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
|
||||
#*************** Istio ?????? ***************#
|
||||
# MCP ????? - ???
|
||||
#*************** Istio 服务网格配置 ***************#
|
||||
# MCP 服务支持 - 已禁用
|
||||
nacos.istio.mcp.server.enabled=false
|
||||
#*************** K8s ???? ***************#
|
||||
# K8s ???? - ???
|
||||
#*************** K8s 相关配置 ***************#
|
||||
# K8s 同步支持 - 已禁用
|
||||
nacos.k8s.sync.enabled=false
|
||||
#*************** ?????? ***************#
|
||||
# ????: 'merged' ????, 'server' ????, 'console' ????
|
||||
#*************** 部署模式配置 ***************#
|
||||
# 部署模式: 'merged' 混合模式, 'server' 服务端模式, 'console' 控制台模式
|
||||
nacos.deployment.type=merged
|
||||
#*************** ?????? ***************#
|
||||
# ???????????
|
||||
#*************** 模糊匹配配置 ***************#
|
||||
# 配置中心模糊匹配最大值
|
||||
nacos.config.fuzzy.watch.max.pattern.count=20
|
||||
nacos.config.fuzzy.watch.max.pattern.match.config.count=500
|
||||
# ?????????????
|
||||
# 服务发现模糊匹配最大值
|
||||
nacos.naming.fuzzy.watch.max.pattern.count=20
|
||||
nacos.naming.fuzzy.watch.max.pattern.match.service.count=500
|
||||
Reference in new issue
Block a user