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 d2b80ea commit 4c10cc4
Showing 1 changed file with 37 additions and 46 deletions.
83 changes: 37 additions & 46 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,81 @@
server:
ssl:
key-store: "classpath:keystore.p12"
key-store: "${SERVER_SSL_KEY_STORE}"
key-store-type: PKCS12
key-store-password: asdttycc
key-store-password: "${SERVER_SSL_KEY_STORE_PASSWORD}"
port: 443

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

spring:
security:
oauth2:
client:
registration:

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

redirect-uri: "https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/google"
kakao:
client-id: 6b1d134980644fe3a21d1a0f09b52c4d
client-secret: 6CE5ZNnGwrIfqkAjBENpiFIik67OsSdE
client-id: "${OAUTH_KAKAO_CLIENT_ID}"
client-secret: "${OAUTH_KAKAO_CLIENT_SECRET}"
scope:
- profile_nickname
authorization-grant-type: authorization_code
redirect-uri: https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/kakao
redirect-uri: "https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/kakao"
client-name: Kakao
client-authentication-method: client_secret_post

naver:
client-id: hbhB10Tk7nEfIWzdZDnW
client-secret: TR7P0nBX0D
client-id: "${OAUTH_NAVER_CLIENT_ID}"
client-secret: "${OAUTH_NAVER_CLIENT_SECRET}"
scope:
- name
client-name: Naver
authorization-grant-type: authorization_code
redirect-uri: https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/naver
redirect-uri: "https://yoonsever.xn--h32bi4v.xn--3e0b707e:443/login/oauth2/code/naver"

provider:
provider:
kakao:
authorization-uri: https://kauth.kakao.com/oauth/authorize
token-uri: https://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id

kakao:
authorization-uri: https://kauth.kakao.com/oauth/authorize
token-uri: https://kauth.kakao.com/oauth/token
user-info-uri: https://kapi.kakao.com/v2/user/me
user-name-attribute: id

naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response

spring:
datasource:
url: jdbc:mysql://yoondb.cnwom4kocpo9.ap-northeast-2.rds.amazonaws.com:3306/yoondb?serverTimezone=Asia/Seoul&characterEncoding=UTF-8 # 실제 엔드포인트와 DB 이름
username: admin # 실제 사용자 이름
password: uionrtqwe # 실제 사용자 비번
url: "${DATABASE_URL}"
username: "${DATABASE_USERNAME}"
password: "${DATABASE_PASSWORD}"
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create # 처음에는 create -> 나중에는 update
ddl-auto: create
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 # 실제 s3 버킷 이름
bucket: yoons-s3
region:
static: ap-northeast-2 # 실제 지역
stack:
auto: false
static: ap-northeast-2
credentials:
accessKey: AKIAU6VTTQ4ELQ5SZGN7 # 실제 엑세스 키
secretKey: OMKKodLRRbtRydixVYioqswC/DMHE/NH+oEwyGFs
accessKey: "${AWS_ACCESS_KEY_ID}"
secretKey: "${AWS_SECRET_ACCESS_KEY}"

0 comments on commit 4c10cc4

Please sign in to comment.