cloud-battery-manage/admin-server/src/main/resources/application.yml
2025-04-08 10:06:54 +08:00

59 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 1.server
server:
port: 9099
servlet:
context-path: /admonitor
# 2. log
logging:
config: classpath:logback-spring.xml
# 3. spring
spring:
application:
name: admin-monitor
boot:
admin:
ui:
# 登陆页面标题
title: 微服务监控
# 登陆后,页面左上标题
brand: <span>服务监控和日志</span>
# 配置一个账号和密码
# security:
# user:
# name: zrb
# password: zrb123
cloud:
nacos:
serverAddr: 192.168.5.213:8848
username: nacos
password: nacos
discovery:
namespace: ${nacos.namespace:public}
register-enabled: true
#server-addr: 10.10.1.6:8848
#ip: 10.10.1.2
# metadata:
# user:
# name: ${spring.security.user.name}
# password: ${spring.security.user.password}
# 因添加了context-pathadmin-server要想发现正确路径需要加这个
metadata:
management:
context-path: ${server.servlet.context-path}/actuator
#开放指定信息给服务器看
management:
httpexchanges:
recording:
enabled: true
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
# xml文件中配置的日志文件的名称
logfile:
external-file: /logs/admin/admin-server.log