Skip to content

Commit 043f65a

Browse files
committed
chore: 개발, 운영 프로필 분리
1 parent 0cae50a commit 043f65a

File tree

2 files changed

+82
-55
lines changed

2 files changed

+82
-55
lines changed

src/main/resources/application-dev.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/main/resources/application.yml

Lines changed: 82 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
logging:
2-
level:
3-
org:
4-
springframework: debug
5-
61
spring:
72
profiles:
8-
include: secret
3+
group:
4+
"prod": "prod, secret"
5+
"dev": "dev, secret"
6+
---
7+
#운영환경
8+
spring:
9+
config:
10+
activate:
11+
on-profile: prod
912

1013
datasource:
11-
url: ${mysql.url}
12-
username: ${mysql.username}
13-
password: ${mysql.password}
14-
1514
url: ${aws-mysql.url}
1615
username: ${aws-mysql.username}
1716
password: ${aws-mysql.password}
@@ -20,8 +19,7 @@ spring:
2019
jpa:
2120
database-platform: org.hibernate.dialect.MySQL8Dialect
2221
hibernate:
23-
ddl-auto: create
24-
22+
ddl-auto: validate
2523

2624
security:
2725
oauth2:
@@ -71,3 +69,75 @@ spring:
7169
token-uri: https://kauth.kakao.com/oauth/token
7270
user-info-uri: https://kapi.kakao.com/v2/user/me
7371
user-name-attribute: id
72+
logging:
73+
level:
74+
org:
75+
springframework: debug
76+
---
77+
# 개발환경
78+
spring:
79+
config:
80+
activate:
81+
on-profile: dev
82+
83+
datasource:
84+
url: ${mysql.url}
85+
username: ${mysql.username}
86+
password: ${mysql.password}
87+
driver-class-name: com.mysql.cj.jdbc.Driver
88+
89+
jpa:
90+
hibernate:
91+
ddl-auto: update
92+
93+
security:
94+
oauth2:
95+
client:
96+
registration:
97+
naver:
98+
client-name: naver
99+
client-id: ${naver.client-id}
100+
client-secret: ${naver.client-secret}
101+
redirect-uri: ${naver.redirect-uri}
102+
authorization-grant-type: authorization_code
103+
scope:
104+
- name
105+
- email
106+
107+
google:
108+
client-name: google
109+
client-id: ${google.client-id}
110+
client-secret: ${google.client-secret}
111+
redirect-uri: ${google.redirect-uri}
112+
authorization-grant-type: authorization_code
113+
scope:
114+
- profile
115+
- email
116+
-
117+
kakao:
118+
client-name: kakao
119+
client-id: ${kakao.client-id}
120+
client-secret: ${kakao.client-secret}
121+
redirect-uri: ${kakao.redirect-uri}
122+
authorization-grant-type: authorization_code
123+
client-authentication-method: client_secret_post
124+
scope:
125+
- profile_nickname
126+
- profile_image
127+
- account_email
128+
provider:
129+
naver:
130+
authorization-uri: https://nid.naver.com/oauth2.0/authorize
131+
token-uri: https://nid.naver.com/oauth2.0/token
132+
user-info-uri: https://openapi.naver.com/v1/nid/me
133+
user-name-attribute: response
134+
135+
kakao:
136+
authorization-uri: https://kauth.kakao.com/oauth/authorize
137+
token-uri: https://kauth.kakao.com/oauth/token
138+
user-info-uri: https://kapi.kakao.com/v2/user/me
139+
user-name-attribute: id
140+
logging:
141+
level:
142+
org:
143+
springframework: debug

0 commit comments

Comments
 (0)