spring:
datasource:
url: jdbc:h2:mem:test;MODE=MySQL
username: sa
password:
driver-class-name: org.h2.Driver
h2:
console:
enabled: true
path: /h2-console
jpa:
hibernate:
ddl-auto: create
show-sql: true
properties:
hibernate:
format_sql: true
default_batch_fetch_size: 100
open-in-view: false
mvc:
pathmatch:
matching-strategy: ant_path_matcher
jwt:
secretKey: ENC(FFqIhuVHP55GbmEItS8qE6yuBnqu6uy8pH7iGmebJW9NB0AEtYPesSJndj1Mqb2H2CasgMESlggdCQDnY98j8US2kEbSVEiqip3xIbBrRlPNVbzzIb4wLrgfHxZks9gdmGCaqttRLw8=)
jasypt:
encryptor:
enabled: true
kakao:
token-url: https://kauth.kakao.com/oauth/token
user-api-url: https://kapi.kakao.com/v2/user/me
rest-api-key: 0efff2c2f5f7de603b91cb6230b131ab
redirect-url: http://localhost:3000
google:
token-url: https://oauth2.googleapis.com/token
user-api-url: https://www.googleapis.com/oauth2/v3/userinfo
redirect-url: http://localhost:3000/login/google
client-id: ${GOOGLE_CLIENT_ID}
client-secret: ${GOOGLE_CLIENT_SECRET}
cloud:
aws:
s3:
bucket: kakaotechcampust-step3-nemobucket
stack.auto: false
region.static: ap-northeast-2
credentials:
accessKey: AKIAVBQDJ37FAVI2YLP2
secretKey: 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
spring:
datasource:
url: jdbc:h2:mem:test;MODE=MySQL
username: sa
password:
driver-class-name: org.h2.Driver
h2:
console:
enabled: true
jpa:
hibernate:
ddl-auto: create
show-sql: true
properties:
hibernate:
format_sql: true
default_batch_fetch_size: 100
open-in-view: false
mvc:
pathmatch:
matching-strategy: ant_path_matcher
kakao:
tokenUrl: https://kauth.kakao.com/oauth/token
userApiUrl: https://kapi.kakao.com/v2/user/me
restapiKey: 0efff2c2f5f7de603b91cb6230b131ab
redirectUrl: http://localhost:8080/callback
authUrl: https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=
application-test.yml : test 설정 파일application-pord.yml : 배포용 설정 파일application.yml : local 개발 환경 및 환경 변수 설정application.yml 파일을 기본 설정 파일로 사용하며, 프로파일 별로 추가 설정을 application-{profile}.yml 파일에 작성할 수 있다application.yml 파일에 작성된 설정은 모든 프로파일에서 공통으로 사용되며, 각 프로파일 설정 파일에 작성된 설정은 해당 프로파일이 활성화될 때만 사용 ⇒ application.yml에 기본적인 설정들을 작성하고, 프로파일 별로 필요한 설정을 application-{profile}.yml 파일에 작성하면, 해당 프로파일이 활성화될 때 프로파일 설정 파일의 값으로 application.yml의 값을 덮어씀https://github.com/Step3-kakao-tech-campus/Team2_BE/pull/64
DATABASE_URL , DATABASE_USER , DATABASE_PASSWORD 는 보안상의 문제를 방지하기 위해 정보를 외부에 노출하지 않도록 하였고 환경변수로 설정해 사용하게 되었다.참고