-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Issue/#99
- Loading branch information
Showing
7 changed files
with
143 additions
and
99 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
zzansuni-api-server/app/src/main/resources/application-database.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
spring: # default test profile | ||
datasource: | ||
url: "jdbc:h2:mem:zzansuni;MODE=MySQL" | ||
username: "sa" | ||
password: "" | ||
driver-class-name: org.h2.Driver | ||
jpa: | ||
hibernate: | ||
ddl-auto: create | ||
naming: | ||
physical-strategy: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy | ||
properties: | ||
hibernate: | ||
dialect: org.hibernate.dialect.H2Dialect | ||
sql.init.mode: never | ||
h2: | ||
console: | ||
enabled: true | ||
path: /h2-console | ||
logging.level: | ||
org.hibernate: | ||
orm.jdbc.bind: trace | ||
SQL: debug | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: local, dev, prod # dev, prod 공통 설정 | ||
datasource: | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
defer-datasource-initialization: false | ||
properties: | ||
hibernate: | ||
dialect: org.hibernate.dialect.MySQL8Dialect | ||
sql.init.mode: never | ||
h2.console.enabled: false | ||
--- | ||
spring: # local profile | ||
config: | ||
activate: | ||
on-profile: local | ||
datasource: | ||
url: jdbc:mysql://localhost:3306/zzansuni?createDatabaseIfNotExist=true | ||
username: "root" | ||
password: "root" | ||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
--- | ||
spring: # dev,prod profile | ||
config: | ||
activate: | ||
on-profile: dev, prod | ||
datasource: | ||
url: ${MYSQL_URL} | ||
username: ${MYSQL_USERNAME} | ||
password: ${MYSQL_PASSWORD} | ||
jpa: | ||
hibernate: | ||
ddl-auto: none |
10 changes: 10 additions & 0 deletions
10
zzansuni-api-server/app/src/main/resources/application-doc.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
springdoc: | ||
default-consumes-media-type: application/json;charset=UTF-8 | ||
default-produces-media-type: application/json;charset=UTF-8 | ||
use-fqn: true # 패키지 경로를 포함한 클래스명으로 문서화 (FOR inner static class) | ||
--- | ||
spring: # dev,prod profile | ||
config: | ||
activate: | ||
on-profile: dev, prod | ||
server-url: ${SERVER_URL} |
13 changes: 13 additions & 0 deletions
13
zzansuni-api-server/app/src/main/resources/application-flyway.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
spring: | ||
flyway: | ||
enabled: false | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: local, dev, prod | ||
flyway: | ||
enabled: true | ||
baseline-on-migrate: false # Flyway가 초기화되지 않은 데이터베이스에 마이그레이션을 적용할 때 초기 버전으로 마이그레이션 파일을 적용할지 여부 | ||
fail-on-missing-locations: true # 스크립트 파일을 저장하는 위치를 못 찾을때 실패할지 여부 | ||
baseline-version: 1 # Flyway가 초기화되지 않은 데이터베이스에 마이그레이션을 적용할 때 버전을 설정 |
4 changes: 4 additions & 0 deletions
4
zzansuni-api-server/app/src/main/resources/application-jwt.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
jwt: | ||
secret: ${JWT_SECRET:4099a46b-39db-4860-a61b-2ae76ea24c43} | ||
access-token-expire-time: 1800000 # 30 minutes | ||
refresh-token-expire-time: 2592000000 # 30 days |
29 changes: 29 additions & 0 deletions
29
zzansuni-api-server/app/src/main/resources/application-oauth2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
spring: | ||
config: | ||
activate: | ||
on-profile: local, dev, prod # dev, prod 공통 설정 | ||
kakao: | ||
client-id: ${KAKAO_CLIENT_ID:c959f4526a0df321dff0a8636fec3428} | ||
naver: | ||
client-id: ${NAVER_CLIENT_ID:Ob2i2TZtIsaNqH8j_q9X} | ||
--- | ||
spring: # local profile | ||
config: | ||
activate: | ||
on-profile: local | ||
kakao: | ||
client-secret: ${KAKAO_CLIENT_SECRET:placeholder} | ||
redirect-uri: ${KAKAO_REDIRECT_URI:placeholder} | ||
naver: | ||
client-secret: ${NAVER_CLIENT_SECRET:placeholder} | ||
--- | ||
spring: # dev,prod profile | ||
config: | ||
activate: | ||
on-profile: dev, prod | ||
kakao: | ||
client-secret: ${KAKAO_CLIENT_SECRET} | ||
redirect-uri: ${KAKAO_REDIRECT_URI} | ||
naver: | ||
client-secret: ${NAVER_CLIENT_SECRET} | ||
server-url: ${SERVER_URL} |
15 changes: 15 additions & 0 deletions
15
zzansuni-api-server/app/src/main/resources/application-s3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
spring: # dev,prod profile | ||
config: | ||
activate: | ||
on-profile: dev, prod | ||
cloud: | ||
aws: | ||
s3.bucket: ${S3_BUCKET} | ||
credentials: | ||
access-key: ${S3_ACCESS_KEY} | ||
secret-key: ${S3_SECRET_KEY} | ||
region: | ||
static: ap-northeast-2 | ||
auto: false | ||
stack: | ||
auto: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters