修改配置文件
This commit is contained in:
parent
94fa5e850f
commit
cdc6d392bb
|
|
@ -1,19 +1,18 @@
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: tacit-admin
|
name: tacit-admin
|
||||||
config:
|
main:
|
||||||
import:
|
web-application-type: reactive
|
||||||
- nacos: # 添加此行
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
|
enabled: true
|
||||||
server-addr: localhost:8848
|
server-addr: localhost:8848
|
||||||
namespace: public
|
username: nacos
|
||||||
|
password: nacos
|
||||||
config:
|
config:
|
||||||
|
enabled: true
|
||||||
server-addr: localhost:8848
|
server-addr: localhost:8848
|
||||||
namespace: public
|
file-extension: yaml
|
||||||
file-extension: yml
|
username: nacos
|
||||||
group: DEFAULT_GROUP
|
password: nacos
|
||||||
refresh-enabled: true
|
|
||||||
profiles:
|
|
||||||
active: dev
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
server:
|
server:
|
||||||
port: 8081
|
port: 8082
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
server:
|
server:
|
||||||
port: 8082
|
port: 8083
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,18 @@
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: tacit-app-api
|
name: tacit-app-api
|
||||||
config:
|
main:
|
||||||
import:
|
web-application-type: reactive
|
||||||
- nacos: # 添加此行
|
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
|
enabled: true
|
||||||
server-addr: localhost:8848
|
server-addr: localhost:8848
|
||||||
namespace: public
|
username: nacos
|
||||||
|
password: nacos
|
||||||
config:
|
config:
|
||||||
|
enabled: true
|
||||||
server-addr: localhost:8848
|
server-addr: localhost:8848
|
||||||
namespace: public
|
file-extension: yaml
|
||||||
file-extension: yml
|
username: nacos
|
||||||
group: DEFAULT_GROUP
|
password: nacos
|
||||||
refresh-enabled: true
|
|
||||||
profiles:
|
|
||||||
active: dev
|
|
||||||
|
|
|
||||||
|
|
@ -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