修改 spring boot admin 端口

This commit is contained in:
YunaiV 2019-03-09 01:33:56 +08:00
parent ad44edc7b3
commit 19eb551a88
2 changed files with 11 additions and 8 deletions

View File

@ -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 对外暴露,从而不配置安全认证。也就是说,内网环境可访问,外网环境不可访问。当然,这么做的前提是,认为内网安全。

View File

@ -6,10 +6,4 @@ spring:
server:
port: 18083
servlet:
context-path: /admin-api/
management:
endpoints:
web:
exposure:
include: "*"
context-path: /admin-api/