Skip to content

Commit

Permalink
Update application.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoon0221 authored Nov 23, 2024
1 parent 9ae4206 commit ba5697f
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ server:
ssl:
key-store: "classpath:keystore.p12"
key-store-type: PKCS12
key-store-password: "${SERVER_SSL_KEY_STORE_PASSWORD}"
key-store-password: asdttycc
port: 443

spring:
jwt:
secret-key: "${JWT_SECRET_KEY}"
secret-key: "hadgfsfsfsfsssfsfssfsfsfsffasadad1234567890" # JWT 비밀 키 (256비트 이상)
redirect: "https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login?name=%s&user_uuid=%s" # 로그인 후 리디렉션 URL (사용자 uuid 포함)
access-token:
expiration-time: 3600000 # 액세스 토큰 만료 시간 (밀리초 단위, 1시간)
Expand All @@ -20,16 +20,16 @@ spring:
registration:

google:
client-id: "${OAUTH_GOOGLE_CLIENT_ID}"
client-secret: "${OAUTH_GOOGLE_CLIENT_SECRET}"
client-id: 68070665235-qvdshelcl2eja5amt37urbhqgpuuv4ve.apps.googleusercontent.com
client-secret: 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
scope:
- email
- profile
redirect-uri: https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/google

kakao:
client-id: "${OAUTH_KAKAO_CLIENT_ID}"
client-secret: "${OAUTH_KAKAO_CLIENT_SECRET}"
client-id: 6b1d134980644fe3a21d1a0f09b52c4d
client-secret: 6CE5ZNnGwrIfqkAjBENpiFIik67OsSdE
scope:
- profile_nickname
authorization-grant-type: authorization_code
Expand All @@ -38,8 +38,8 @@ spring:
client-authentication-method: client_secret_post

naver:
client-id: "${OAUTH_NAVER_CLIENT_ID}"
client-secret: "${OAUTH_NAVER_CLIENT_SECRET}"
client-id: hbhB10Tk7nEfIWzdZDnW
client-secret: TR7P0nBX0D
scope:
- name
client-name: Naver
Expand All @@ -61,21 +61,30 @@ spring:
user-name-attribute: response

datasource:
url: "${DATABASE_URL}"
username: "${DATABASE_USERNAME}"
password: "${DATABASE_PASSWORD}"
url: jdbc:mysql://yoondb.cnwom4kocpo9.ap-northeast-2.rds.amazonaws.com:3306/yoondb?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 # 실제 엔드포인트와 DB 이름
username: admin # 실제 사용자 이름
password: uionrtqwe # 실제 사용자 비번
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create
ddl-auto: create # 처음에는 create -> 나중에는 update
show-sql: true
spring:
servlet:
multipart:
enabled: true # multipart 기능 활성화
max-file-size: 10MB # 업로드할 파일의 최대 크기
max-request-size: 10MB # 요청 크기 제한
file-size-threshold: 2KB # 임시 파일이 저장될 크기

cloud:
aws:
s3:
bucket: yoons-s3
bucket: yoons-s3 # 실제 s3 버킷 이름
region:
static: ap-northeast-2
static: ap-northeast-2 # 실제 지역
stack:
auto: false
credentials:
accessKey: "${AWS_ACCESS_KEY_ID}"
secretKey: "${AWS_SECRET_ACCESS_KEY}"
accessKey: AKIAU6VTTQ4ELQ5SZGN7 # 실제 엑세스 키
secretKey: OMKKodLRRbtRydixVYioqswC/DMHE/NH+oEwyGFs

0 comments on commit ba5697f

Please sign in to comment.