修改配置文件
This commit is contained in:
parent
94fa5e850f
commit
cdc6d392bb
|
|
@ -1,19 +1,18 @@
|
|||
spring:
|
||||
application:
|
||||
name: tacit-admin
|
||||
config:
|
||||
import:
|
||||
- nacos: # 添加此行
|
||||
main:
|
||||
web-application-type: reactive
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
enabled: true
|
||||
server-addr: localhost:8848
|
||||
namespace: public
|
||||
username: nacos
|
||||
password: nacos
|
||||
config:
|
||||
enabled: true
|
||||
server-addr: localhost:8848
|
||||
namespace: public
|
||||
file-extension: yml
|
||||
group: DEFAULT_GROUP
|
||||
refresh-enabled: true
|
||||
profiles:
|
||||
active: dev
|
||||
file-extension: yaml
|
||||
username: nacos
|
||||
password: nacos
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 8081
|
||||
port: 8082
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
server:
|
||||
port: 8082
|
||||
port: 8083
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
|
|
|
|||
|
|
@ -1,19 +1,18 @@
|
|||
spring:
|
||||
application:
|
||||
name: tacit-app-api
|
||||
config:
|
||||
import:
|
||||
- nacos: # 添加此行
|
||||
main:
|
||||
web-application-type: reactive
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
enabled: true
|
||||
server-addr: localhost:8848
|
||||
namespace: public
|
||||
username: nacos
|
||||
password: nacos
|
||||
config:
|
||||
enabled: true
|
||||
server-addr: localhost:8848
|
||||
namespace: public
|
||||
file-extension: yml
|
||||
group: DEFAULT_GROUP
|
||||
refresh-enabled: true
|
||||
profiles:
|
||||
active: dev
|
||||
file-extension: yaml
|
||||
username: nacos
|
||||
password: nacos
|
||||
|
|
|
|||
|
|
@ -0,0 +1,50 @@
|
|||
server:
|
||||
port: 8081
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
routes:
|
||||
# Admin Service Route
|
||||
- id: tacit-admin
|
||||
uri: lb://tacit-admin
|
||||
predicates:
|
||||
- Path=/admin/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
# App API Service Route
|
||||
- id: tacit-app-api
|
||||
uri: lb://tacit-app-api
|
||||
predicates:
|
||||
- Path=/api/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
- JwtAuthenticationFilter
|
||||
|
||||
# Swagger UI Routes
|
||||
- id: swagger-admin
|
||||
uri: lb://tacit-admin
|
||||
predicates:
|
||||
- Path=/swagger-admin/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
- id: swagger-app-api
|
||||
uri: lb://tacit-app-api
|
||||
predicates:
|
||||
- Path=/swagger-app-api/**
|
||||
filters:
|
||||
- StripPrefix=1
|
||||
|
||||
# Logging Configuration
|
||||
logging:
|
||||
level:
|
||||
org.springframework.cloud.gateway: debug
|
||||
org.springframework.http.server.reactive: debug
|
||||
org.springframework.web.reactive: debug
|
||||
reactor.netty: debug
|
||||
Loading…
Reference in New Issue