From a6b67e73d87c164af2b10771437b7c69e43d8380 Mon Sep 17 00:00:00 2001 From: lbw Date: Sun, 29 May 2022 13:49:20 +0800 Subject: [PATCH] Revert ":rewind: Reverting changes. pigx-register/application.yml" This reverts commit 544617ea --- .../src/main/resources/application.yml | 52 ++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/pigx-register/src/main/resources/application.yml b/pigx-register/src/main/resources/application.yml index 0750e5573..102e0fd38 100644 --- a/pigx-register/src/main/resources/application.yml +++ b/pigx-register/src/main/resources/application.yml @@ -1,3 +1,51 @@ +server: + port: 8848 + tomcat: + basedir: logs + +db: + num: 1 + user: ${MYSQL_USER:root} + password: ${MYSQL_PWD:127255} + 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 + + +nacos: + core: + auth: + system.type: nacos + default.token.secret.key: SecretKey012345678901234567890123456789012345678901234567890123456789 + security: + ignore: + urls: /,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** + spring: - profiles: - active: @profiles.active@ \ No newline at end of file + datasource: + platform: mysql #这个过期属性不能修改,nacos 代码对此有硬编码 + security: + enabled: true + boot: # 接入 spring boot admin + admin: + client: + url: http://pigx-monitor:5001 + username: pig + password: pig + instance: + prefer-ip: true + application: + name: @project.artifactId@ + +useAddressServer: true + +management: + endpoints: + web: + exposure: + include: '*' + metrics: + export: + influx: + enabled: false + elastic: + enabled: false