提交 19eb551a authored 作者: YunaiV's avatar YunaiV

修改 spring boot admin 端口

上级 ad44edc7
......@@ -3,4 +3,13 @@ spring:
admin:
client:
enabled: true
url: http://127.0.0.1:18097
\ No newline at end of file
url: http://127.0.0.1:18097
management:
endpoints:
web:
exposure:
include: "*"
server:
port: 19083 # 配置独立端口。而该端口,不使用 nginx 对外暴露,从而不配置安全认证。也就是说,内网环境可访问,外网环境不可访问。当然,这么做的前提是,认为内网安全。
\ No newline at end of file
......@@ -6,10 +6,4 @@ spring:
server:
port: 18083
servlet:
context-path: /admin-api/
management:
endpoints:
web:
exposure:
include: "*"
\ No newline at end of file
context-path: /admin-api/
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论