-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathapplication.yml
More file actions
44 lines (41 loc) · 1.2 KB
/
application.yml
File metadata and controls
44 lines (41 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
spring:
main:
allow-circular-references: true
allow-bean-definition-overriding: true
application:
name: datamate-gateway # 必须设置应用名
cloud:
nacos:
discovery:
fail-fast: false
# 显式设置端口
port: ${server.port:30000} # 与服务端口一致
server-addr: ${NACOS_ADDR:https://consulservice:18302}
username: consul
password:
ip: ${spring.application.name}
secure: true
cluster-name: DEFAULT
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://datamate-database:5432/datamate?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: ${DB_USERNAME:postgres}
password: ${DB_PASSWORD:password}
hikari:
maximum-pool-size: 20
minimum-idle: 5
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
datamate:
jwt:
secret: ${JWT_SECRET}
expiration-seconds: 3600
oms:
auth:
enabled: ${OMS_AUTH_ENABLED:false}
service:
url: ${OMS_SERVICE_URL:https://omsservice:18082}
# 服务器端口配置
server:
port: 8080 # 必须有这个配置