Skip to content

Commit

Permalink
Nacos中的配置文件更新
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Jul 24, 2022
1 parent 2cc7a54 commit 55f5dc3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 11 deletions.
7 changes: 6 additions & 1 deletion config/admin/mall-admin-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aliyun:
prefix: mall/images/ # 上传文件夹路径前缀
spring:
datasource:
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: root
redis:
Expand All @@ -21,6 +21,11 @@ spring:
port: 6379 # Redis服务器连接端口
password: # Redis服务器连接密码(默认为空)
timeout: 3000ms # 连接超时时间(毫秒)
minio:
endpoint: http://localhost:9000 #MinIO服务所在地址
bucketName: mall #存储桶名称
accessKey: minioadmin #访问的key
secretKey: minioadmin #访问的秘钥
logging:
level:
root: info
Expand Down
7 changes: 6 additions & 1 deletion config/admin/mall-admin-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,19 @@ aliyun:
prefix: mall/images/ # 上传文件夹路径前缀
spring:
datasource:
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: reader
password: 123456
redis:
host: redis # Redis服务器地址
database: 0 # Redis数据库索引(默认为0)
port: 6379 # Redis服务器连接端口
password: #不设置密码
minio:
endpoint: http://192.168.3.101:9090 #MinIO服务所在地址
bucketName: mall #存储桶名称
accessKey: minioadmin #访问的key
secretKey: minioadmin #访问的秘钥
logging:
file:
path: /var/logs
Expand Down
2 changes: 1 addition & 1 deletion config/demo/mall-demo-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: root
logging:
Expand Down
2 changes: 1 addition & 1 deletion config/demo/mall-demo-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: reader
password: 123456
logging:
Expand Down
2 changes: 1 addition & 1 deletion config/portal/mall-portal-dev.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: root
data:
Expand Down
2 changes: 1 addition & 1 deletion config/portal/mall-portal-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: root
password: root
data:
Expand Down
3 changes: 1 addition & 2 deletions config/search/mall-search-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ spring:
username: root
password: root
elasticsearch:
rest:
uris: http://localhost:9200
uris: localhost:9200
logging:
level:
root: info
Expand Down
5 changes: 2 additions & 3 deletions config/search/mall-search-prod.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
spring:
datasource:
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&useSSL=false
username: reader
password: 123456
elasticsearch:
rest:
uris: http://es:9200
uris: es:9200
management:
health:
elasticsearch:
Expand Down

0 comments on commit 55f5dc3

Please sign in to comment.