Browse Source

机场平台基础配置

master
chenjiandong 1 year ago
parent
commit
c4b70447fb
1 changed files with 32 additions and 10 deletions
  1. +32
    -10
      tuoheng-admin/src/main/resources/application-local.yml

+ 32
- 10
tuoheng-admin/src/main/resources/application-local.yml View File

@@ -3,18 +3,40 @@ tuoheng:
# 图片域名
# 后期要修改
#image-url: http://images.airport.dev.taauav.com
image-url: http://192.168.144.88:30079/
image-url: #http://192.168.11.22:30079/airport/uploads/

spring:
# 注册中心consul地址
cloud:
consul:
#host: 192.168.11.13 # consul 所在服务地址
host: 127.0.0.1 # consul 所在服务地址
port: 8500 # consul 服务端口
discovery:
# 是否启用服务发现
enabled: true
# 配置服务注册
register: true
deregister: true
## consul ip地址
hostname: 127.0.0.1
# 注册到consul的服务名称
service-name: ${spring.application.name} # 服务提供者名称
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} #实例ID
heartbeat:
enabled: true
prefer-ip-address: true
health-check-path: /actuator/health #健康检查
health-check-interval: 10s
# 配置数据源
datasource:
# 使用阿里的Druid连接池
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
# 填写你数据库的url、登录名、密码和数据库名
url: jdbc:mysql://127.0.0.1:3306/tuoheng_airport?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
username: th
password: th
url: jdbc:mysql://192.168.11.13:3306/tuoheng_airport?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8&useSSL=true&tinyInt1isBit=false
username: root
password: idontcare
druid:
# 连接池的配置信息
# 初始连接数
@@ -62,13 +84,13 @@ spring:
# 登录密码
login-password: 123456
mqtt:
onlineUrl: http://127.0.0.1:18083
onlineUrl: http://192.168.11.22:18083
#MQTT服务地址,端口号默认11883,如果有多个,用逗号隔开
url: tcp://127.0.0.1:1883
url: tcp://192.168.11.22:1883
#用户名
username: admin
#密码
password: admin##123
password: public
#客户端id(不能重复)
client:
id: provider-id
@@ -80,7 +102,7 @@ spring:
# 缓存库默认索引0
database: 9
# Redis服务器地址
host: 127.0.0.1
host: 192.168.11.13
# Redis服务器连接端口
port: 6379
# Redis服务器连接密码(默认为空)
@@ -99,7 +121,7 @@ spring:
servlet:
multipart:
# 过滤springmvc的文件上传
enabled: false
# enabled: false
# 单个文件最大值
max-file-size: 100MB
# 上传文件总的最大值
@@ -193,4 +215,4 @@ aliyun:
accessKeyId: "LTAI5tCMz1nQ3U6jQj8tR8XQ"
accessKeySecret: "qH9CwhQwKhNY2g8MyZnHFhhIYqQgTB"
bucketName: "th-airport"
filedir: "devFile/"
filedir: "devFile/"

Loading…
Cancel
Save