Skip to content

Commit 3ddeade

Browse files
committed
fix: prod 파라미터 스토어 형식에 맞게 전체 변경
1 parent e502715 commit 3ddeade

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

src/main/resources/application-prod.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jwt:
2-
secret: ${JWT_SECRET}
2+
secret: ${jwt.secret}
33
token:
44
expiration: 86400 # 24시간 (초)
55
refresh-token:
@@ -8,12 +8,12 @@ jwt:
88

99
spring:
1010
config:
11-
import: aws-parameterstore:/gridgestagram/
11+
import: 'aws-parameterstore:/config/gridgestagram_prod/'
1212
datasource:
1313
driver-class-name: com.mysql.cj.jdbc.Driver
14-
url: jdbc:mysql://${DB_HOST}:${DB_PORT}/gridgestagram?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&connectionCollation=utf8mb4_ko_0900_ai_ci&serverTimezone=Asia/Seoul
15-
username: ${DB_USERNAME}
16-
password: ${DB_PASSWORD}
14+
url: jdbc:mysql://${spring.datasource.host}:${spring.datasource.port}/gridgestagram?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf8&connectionCollation=utf8mb4_ko_0900_ai_ci&serverTimezone=Asia/Seoul
15+
username: ${spring.datasource.username}
16+
password: ${spring.datasource.password}
1717

1818
jpa:
1919
database-platform: org.hibernate.dialect.MySQLDialect
@@ -27,8 +27,8 @@ spring:
2727
client:
2828
registration:
2929
kakao:
30-
client-id: ${KAKAO_REST_API_KEY}
31-
client-secret: ${KAKAO_CLIENT_SECRET_KEY} # 선택, 있으면 등록
30+
client-id: ${spring.security.oauth2.client.registration.kakao.client-id}
31+
client-secret: ${spring.security.oauth2.client.registration.kakao.client-secret} # 선택, 있으면 등록
3232
redirect-uri: "http://3.39.0.54:8080/login/oauth2/code/{registrationId}"
3333
authorization-grant-type: authorization_code
3434
client-authentication-method: client_secret_post
@@ -48,15 +48,22 @@ spring:
4848

4949
data:
5050
redis:
51-
host: redis
52-
port: 6379
51+
host: ${spring.data.redis.host}
52+
port: ${spring.data.redis.port}
53+
5354

5455
cloud:
5556
aws:
5657
region:
57-
static: ${AWS_REGION}
58+
static: ${cloud.aws.region.static}
5859
credentials:
59-
access-key: ${AWS_ACCESS_KEY_ID}
60-
secret-key: ${AWS_SECRET_ACCESS_KEY}
60+
access-key: ${cloud.aws.credentials.access-key}
61+
secret-key: ${cloud.aws.credentials.secret-key}
6162
s3:
62-
bucket: ${S3_BUCKET_NAME}
63+
bucket: ${cloud.aws.s3.bucket}
64+
aws:
65+
paramstore:
66+
enabled: true
67+
prefix: /config
68+
profile-separator: _
69+
name: gridgestagram

0 commit comments

Comments
 (0)