Skip to content

Commit a11d9ee

Browse files
committed
📚 docs: 운영 / 개발 환경 분리
1 parent 6cb182c commit a11d9ee

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

backend/src/main/resources/application.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,29 @@ server:
6565
http-only: true
6666
timeout: ${SESSION_TIMEOUT}
6767
---
68+
spring:
69+
config:
70+
activate:
71+
on-profile: dev
72+
73+
security:
74+
user:
75+
name: ${PROM_NAME}
76+
password: ${PROM_PASSWORD}
77+
roles: PROMETHEUS
78+
79+
management:
80+
server:
81+
port: ${ACTUATOR_PORT}
82+
endpoints:
83+
web:
84+
exposure:
85+
include: "prometheus"
86+
base-path: ${ACTUATOR_BASE_PATH}
87+
endpoint:
88+
prometheus:
89+
access: read_only
90+
---
6891
spring:
6992
config:
7093
activate:
@@ -76,6 +99,20 @@ spring:
7699
password: ${PROM_PASSWORD}
77100
roles: PROMETHEUS
78101

102+
# TODO: Flyway 추가와 함께 설정이 필요한 항목들
103+
# sql:
104+
# init:
105+
# mode: never
106+
#
107+
# jpa:
108+
# hibernate:
109+
# ddl-auto: none
110+
#
111+
# properties:
112+
# hibernate:
113+
# show_sql: false
114+
# format_sql: false
115+
79116
management:
80117
server:
81118
port: ${ACTUATOR_PORT}

0 commit comments

Comments
 (0)