修改 spring boot admin 端口
This commit is contained in:
parent
ad44edc7b3
commit
19eb551a88
|
@ -3,4 +3,13 @@ spring:
|
|||
admin:
|
||||
client:
|
||||
enabled: true
|
||||
url: http://127.0.0.1:18097
|
||||
url: http://127.0.0.1:18097
|
||||
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
server:
|
||||
port: 19083 # 配置独立端口。而该端口,不使用 nginx 对外暴露,从而不配置安全认证。也就是说,内网环境可访问,外网环境不可访问。当然,这么做的前提是,认为内网安全。
|
|
@ -6,10 +6,4 @@ spring:
|
|||
server:
|
||||
port: 18083
|
||||
servlet:
|
||||
context-path: /admin-api/
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
context-path: /admin-api/
|
Loading…
Reference in New Issue