Skip to content

Commit 924af51

Browse files
authored
📚 docs: 운영 / 개발 환경 분리 (#133)
1 parent fb3be98 commit 924af51

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

backend/src/main/java/io/f1/backend/global/config/CorsConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public CorsConfigurationSource corsConfigurationSource() {
1515

1616
config.addAllowedOrigin("http://localhost:3000");
1717
config.addAllowedOrigin("https://brainrace.duckdns.org");
18+
config.addAllowedOrigin("https://api-brainrace.duckdns.org");
1819

1920
config.addAllowedHeader("*");
2021
config.addAllowedMethod("*");

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)