94 lines
3.9 KiB
YAML
94 lines
3.9 KiB
YAML
# ==============================================
|
|
# 메세지 및 다국어 처리를 위한 설정
|
|
# ==============================================
|
|
spring:
|
|
messages:
|
|
basename: messages/exception,messages/validation,messages/uri,messages/operation
|
|
encoding: UTF-8
|
|
|
|
# gzip compression 설정
|
|
compression:
|
|
enabled: true
|
|
mime-types: text/html,text/xml,text/plain,text/css,text/javascript,application/javascript
|
|
min-response-size: 2048
|
|
|
|
# 정적 자원 캐싱 설정
|
|
web:
|
|
resources:
|
|
cache:
|
|
period: 31536000 # 캐싱 기간 1년(초)
|
|
chain:
|
|
strategy:
|
|
content:
|
|
enabled: true # 리소스 버저닝 활성화
|
|
paths: /** # 버저닝 적용 경로
|
|
|
|
# 타임리프 설정
|
|
thymeleaf:
|
|
cache: false # 타임리프 캐시 비활성화
|
|
|
|
# OAuth2 설정
|
|
security:
|
|
oauth2:
|
|
client:
|
|
registration:
|
|
naver:
|
|
client-id: vxAbBgwMTU0gXiMSCSGT # 네이버 개발자센터에서 발급받은 클라이언트 ID
|
|
client-secret: fBVwFSOcGd # 네이버 개발자센터에서 발급받은 클라이언트 시크릿 (보안 주의!)
|
|
redirect-uri: http://localhost:9001/login/oauth2/code/naver # 인증 후 리다이렉트될 URI
|
|
authorization-grant-type: authorization_code # OAuth2 인증 유형 (authorization_code 고정)
|
|
client-name: Naver # 로그인 화면에 표시될 프로바이더 이름
|
|
scope: name,email,birthday,phone # 요청할 사용자 정보 범위 (프로필, 이메일, 생일, 전화번호)
|
|
kakao:
|
|
client-id: 75ab31248046bef7b5077a07b9bee808 # 카카오 개발자센터에서 발급받은 클라이언트 ID
|
|
client-secret: 2YEhGfQ8fFTf3A5IexrrII8qvMzFw998 # 카카오 개발자센터에서 발급받은 클라이언트 시크릿
|
|
redirect-uri: http://localhost:9001/login/oauth2/code/kakao # 인증 후 리다이렉트 URI
|
|
authorization-grant-type: authorization_code
|
|
client-name: Kakao # 로그인 버튼에 표시될 이름
|
|
client-authentication-method: client_secret_post
|
|
scope: profile_nickname, profile_image # 카카오에서 지원하는 스코프 (필요한 정보 선택)
|
|
provider:
|
|
naver:
|
|
authorization-uri: https://nid.naver.com/oauth2.0/authorize # 인증 요청 URI
|
|
token-uri: https://nid.naver.com/oauth2.0/token # 토큰 발급 URI
|
|
user-info-uri: https://openapi.naver.com/v1/nid/me # 사용자 정보 조회 URI
|
|
user-name-attribute: response # 사용자 정보 응답에서 이름을 추출할 JSON 필드 경로
|
|
kakao:
|
|
authorization-uri: https://kauth.kakao.com/oauth/authorize # 카카오 인증 URI
|
|
token-uri: https://kauth.kakao.com/oauth/token # 토큰 발급 URI
|
|
user-info-uri: https://kapi.kakao.com/v2/user/me # 사용자 정보 조회 URI
|
|
user-name-attribute: id # 사용자 정보 응답에서 이름 추출할 필드 (기본값은 'id')
|
|
|
|
# ==============================================
|
|
# 프론트엔드 설정
|
|
# ==============================================
|
|
app:
|
|
front:
|
|
password:
|
|
validity:
|
|
period:
|
|
days: 90 # 패스워드 유효기간(일)
|
|
change:
|
|
notice:
|
|
period:
|
|
days: 7 # 패스워드 변경 공지 기간(만료일 기준 일수)
|
|
auth:
|
|
fail:
|
|
permit: 5 # 인증 실패 허용 횟수
|
|
session:
|
|
validity:
|
|
period:
|
|
seconds: 3600 # 세션 유효기간(초)
|
|
maximum:
|
|
num: 1 # 세션 최대 갯수 (1인 경우 중복 로그인 불가)
|
|
|
|
# ==============================================
|
|
# 로깅 설정
|
|
# ==============================================
|
|
logging:
|
|
level:
|
|
org:
|
|
hibernate:
|
|
orm:
|
|
jdbc:
|
|
bind: trace # Hibernate SQL 파라미터 바인딩 로깅 |