forked from vimal-java-dev/vimaltech-contact-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication-prod.yml
More file actions
71 lines (60 loc) · 1.35 KB
/
application-prod.yml
File metadata and controls
71 lines (60 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
spring:
datasource:
url: ${SPRING_DATASOURCE_URL:?DB_URL is required}
username: ${SPRING_DATASOURCE_USERNAME:?DB_USERNAME is required}
password: ${SPRING_DATASOURCE_PASSWORD:?DB_PASSWORD is required}
driver-class-name: org.postgresql.Driver
mail:
host: ${MAIL_HOST}
port: ${MAIL_PORT}
username: ${MAIL_USERNAME}
password: ${MAIL_PASSWORD}
properties:
mail.smtp.auth: true
mail.smtp.starttls.enable: true
mail.smtp.connectiontimeout: 5000
mail.smtp.timeout: 5000
mail.smtp.writetimeout: 5000
jpa:
hibernate:
ddl-auto: validate
open-in-view: false
main:
banner-mode: off
logging:
level:
root: INFO
com.vimaltech.contactapi: DEBUG
server:
error:
include-stacktrace: always
include-message: always
springdoc:
api-docs:
enabled: false
swagger-ui:
enabled: false
management:
endpoints:
web:
exposure:
include: health,info,prometheus
endpoint:
health:
show-details: always
probes:
enabled: true # ✅ IMPORTANT
group:
readiness:
include: db
health:
mail:
enabled: false # ✅ CRITICAL FIX
metrics:
tags:
application: contact-api
app:
mail:
from: ${MAIL_FROM:?MAIL_FROM is required}
admin:
email: ${APP_ADMIN_EMAIL:?APP_ADMIN_EMAIL is required}