Files
dailyLove/src/main/resources/application.yml
2026-01-14 00:07:57 +08:00

83 lines
2.3 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.
server:
port: 13145
spring:
application:
name: dailyLove
cloud:
refresh:
enabled: false
# 新的配置结构
daily-love:
wechat:
app-id: ${WECHAT_APP_ID:wxba68702957f8b93e}
app-secret: ${WECHAT_APP_SECRET:834078bb149409bfca4fe693ea7c4c1c}
# ME: oo5bL6bK_4TC0tb-Wa5oiugTPVeQ
#LILI: oo5bL6QafHJa9zQNYKS0fIhFC0zM
open-id: ${WECHAT_OPEN_ID:oo5bL6QafHJa9zQNYKS0fIhFC0zM}
template-id-morning: ${WECHAT_TEMPLATE_ID_MORNING:dWNAL-ZOzpBhnByFoTamt9DlJQYLB5z3ldKLvQstyU4}
template-id-night: ${WECHAT_TEMPLATE_ID_NIGHT:oraLiXC-8740stYc1a7mpzUFHiAIRaM3JikqibZ2grE}
colors:
quality: '#99CC66'
morning: '#FFFF99'
chineseDate: '#99CC66'
festival: '#FF6666'
night: '#006699'
tomorrow: '#99CCCC'
now: '#99CCCC'
city: ""
weather: '#66CCCC'
minTem: '#0066CC'
maxTem: '#FF0033'
tips: ""
dailyCn: '#993366'
dailyEn: '#CC99CC'
gbir: '#FF3399'
bbir: '#FF3399'
cbir: '#FF3399'
loveDay: '#FF3399'
weddingDay: '#FF3399'
remark: '#FF6666'
top: '#FF0000'
data:
city-id: ${CITY_ID:101270106}
tianxin-key: ${TIANXIN_KEY:72fbbb9e75e338ea6a240e83972f287c}
girl-birthday: ${GIRL_BIRTHDAY:1995-06-28}
boy-birthday: ${BOY_BIRTHDAY:1995-03-30}
cat-birthday: ${CAT_BIRTHDAY:2022-10-23}
love-day: ${LOVE_DAY:2022-07-16}
wedding-day: ${WEDDING_DAY:2025-10-08}
# 外部服务配置
apis:
tianxin:
server: https://apis.tianapi.com
logging:
level:
com.bamanker.dailylove: INFO
reactor.netty.http.client: DEBUG
org.springframework.web.reactive.function.client: DEBUG
scanclass: false
# Actuator 配置
management:
# 端点配置
endpoints:
web:
exposure:
# 暴露健康端点,生产环境要慎重,别把敏感信息暴露了
include: health,info
# 健康端点配置
endpoint:
health:
# 显示详细的健康信息,方便调试
# 生产环境建议设为 when-authorized需要认证才能看详情
show-details: always
# 开启探针支持,这个必须设置
probes:
enabled: true
# 在主端口上也暴露探针路径
# 这样 K8s 探针可以直接访问应用端口,不用单独配置 management 端口
add-additional-paths: true