Skip to content

Commit

Permalink
feat: 배포환경과 개발환경 환경 변수 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
ImGdevel committed Feb 5, 2025
1 parent 78dd367 commit 2cfaff5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server:

spring:
config:
import: application-API-KEY.yml
import: optional:file:application-API-KEY.yml

datasource:
data:
Expand All @@ -18,8 +18,8 @@ spring:
password: ${SPRING_DATASOURCE_META_PASSWORD}

redis:
host: redis
port: 6380
host: ${REDIS_HOST}
port: ${REDIS_PORT}
timeout: 10000ms
jedis:
enabled: false
Expand All @@ -29,27 +29,27 @@ spring:
enabled: always

jwt:
secret: ${jwt.secret}
access-token-expiration: 1800000
refresh-token-expiration: 259200000
secret: ${JWT_SECRET}
access-token-expiration: ${JWT_ACCESS_TOKEN_EXPIRATION}
refresh-token-expiration: ${JWT_REFRESH_TOKEN_EXPIRATION}

security:
oauth2:
client:
registration:
google:
client-name: google
client-id: ${oauth.google.client-id}
client-secret: ${oauth.google.client-secret}
client-id: ${OAUTH_GOOGLE_CLIENT_ID}
client-secret: ${OAUTH_GOOGLE_CLIENT_SECRET}
redirect-uri: http://localhost:8080/login/oauth2/code/google
authorization-grant-type: authorization_code
scope:
- profile
- email
naver:
client-name: naver
client-id: ${oauth.naver.client-id}
client-secret: ${oauth.naver.client-secret}
client-id: ${OAUTH_NAVER_CLIENT_ID}
client-secret: ${OAUTH_NAVER_CLIENT_SECRET}
redirect-uri: http://localhost:8080/login/oauth2/code/naver
authorization-grant-type: authorization_code
scope:
Expand All @@ -71,15 +71,15 @@ spring:

cloud:
config:
import: application-API-KEY.yml
import: optional:file:application-API-KEY.yml
aws:
credentials:
access-key: ${aws.credentials.access-key}
secret-key: ${aws.credentials.secret-key}
access-key: ${AWS_ACCESS_KEY}
secret-key: ${AWS_SECRET_KEY}
region:
static: ${aws.region.static}
static: ${AWS_REGION}
s3:
bucket: ${aws.s3.bucket}
bucket: ${AWS_S3_BUCKET}

logging:
level:
Expand Down

0 comments on commit 2cfaff5

Please sign in to comment.