Skip to content

Commit

Permalink
[CHORE] 환경 분리를 위한 yaml 파일 변경 #105
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Sep 22, 2023
1 parent 52a2664 commit d907d08
Show file tree
Hide file tree
Showing 2 changed files with 174 additions and 62 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
cloud:
aws:
credentials:
accessKey: ${cloud-access}
secretKey: ${cloud-secret}
region:
static: ${cloud-region}
s3:
bucket: ${bucket-name}
stack:
auto: false
sqs:
notification:
name: ${sqs-notification-name}
url: ${sqs-notification-url}
#api:
# name: ${sqs-api-name}
# url: ${sqs-api-url}

spring:
profiles:
group:
"local": "local_setting, common"
"local_notification": "local_notification_setting, common"
"set1": "set1_setting, common"
"set2": "set2_setting, common"
"notification": "notification_setting, common"
active: local

# common
---
spring:
config:
activate:
on-profile: common

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${db-url}
Expand All @@ -29,27 +25,42 @@ spring:
connection-timeout: 30000 # 30초(default: 30초)
maximum-pool-size: 10 # default: 10개
max-lifetime: 600000 # 10분(default: 30분)
leak-detection-threshold: 2000 # default: 0(이용X)
leak-detection-threshold: 3500 # default: 0(이용X)

jpa:
show-sql: false
hibernate:
ddl-auto: ${db-option}
ddl-auto: update
ejb:
naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
properties:
hibernate:
format_sql: false
format_sql: true

cloud:
aws:
credentials:
accessKey: ${cloud-access}
secretKey: ${cloud-secret}
region:
static: ${cloud-region}
s3:
bucket: ${bucket-name}
stack:
auto: false
sqs:
notification:
name: ${sqs-notification-name}
url: ${sqs-notification-url}

kakao:
client-id: ${kakao-id}
authorization-grant-type: authorization_code
redirect-uri: ${kakao-redirect}

apple:
iss: ${apple-iss}
client-id: ${apple-id}
# nonce: ${apple-nonce}
# nonce:

jwt:
secret: ${jwt-secret}
Expand All @@ -70,12 +81,57 @@ fcm:

logging:
level:
org:
hibernate:
type:
descriptor:
sql: debug
com.zaxxer.hikari.pool.HikariPool: debug
com:
amazonaws:
util:
EC2MetadataUtils: error

# local_setting
---
spring:
config:
activate:
on-profile: local_setting

server:
port: 9091

# local_notification_setting
---
spring:
config:
activate:
on-profile: local_notification_setting

server:
port: 9092

# set1_setting
---
spring:
config:
activate:
on-profile: set1_setting

server:
port: 8081

# set2_setting
---
spring:
config:
activate:
on-profile: set2_setting

server:
port: 8082

# notification_setting
---
spring:
config:
activate:
on-profile: notification_setting

server:
port: 9091
port: 8083
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
cloud:
aws:
credentials:
accessKey: ${cloud-access}
secretKey: ${cloud-secret}
region:
static: ${cloud-region}
s3:
bucket: ${bucket-name}
stack:
auto: false
sqs:
notification:
name: ${sqs-notification-name}
url: ${sqs-notification-url}
#api:
# name: ${sqs-api-name}
# url: ${sqs-api-url}

spring:
profiles:
group:
"local": "local_setting, common"
"local_notification": "local_notification_setting, common"
"set1": "set1_setting, common"
"set2": "set2_setting, common"
"notification": "notification_setting, common"
active: local_notification

# common
---
spring:
config:
activate:
on-profile: common

datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${db-url}
Expand All @@ -29,26 +25,42 @@ spring:
connection-timeout: 30000 # 30초(default: 30초)
maximum-pool-size: 10 # default: 10개
max-lifetime: 600000 # 10분(default: 30분)
leak-detection-threshold: 2000 # default: 0(이용X)
leak-detection-threshold: 3500 # default: 0(이용X)

jpa:
show-sql: false
hibernate:
ddl-auto: ${db-option}
ddl-auto: update
ejb:
naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
properties:
hibernate:
format_sql: false
format_sql: true

cloud:
aws:
credentials:
accessKey: ${cloud-access}
secretKey: ${cloud-secret}
region:
static: ${cloud-region}
s3:
bucket: ${bucket-name}
stack:
auto: false
sqs:
notification:
name: ${sqs-notification-name}
url: ${sqs-notification-url}

kakao:
client-id: ${kakao-id}
authorization-grant-type: authorization_code
redirect-uri: ${kakao-redirect}

apple:
iss: ${apple-iss}
client-id: ${apple-id}
# nonce: ${apple-nonce}
# nonce:

jwt:
secret: ${jwt-secret}
Expand All @@ -69,13 +81,57 @@ fcm:

logging:
level:
org:
hibernate:
type:
descriptor:
sql: debug
com.zaxxer.hikari.pool.HikariPool: debug
com:
amazonaws:
util:
EC2MetadataUtils: error

# local_setting
---
spring:
config:
activate:
on-profile: local_setting

server:
port: 9091

# local_notification_setting
---
spring:
config:
activate:
on-profile: local_notification_setting

server:
port: 9092

# set1_setting
---
spring:
config:
activate:
on-profile: set1_setting

server:
port: 8081

# set2_setting
---
spring:
config:
activate:
on-profile: set2_setting

server:
port: 8082

# notification_setting
---
spring:
config:
activate:
on-profile: notification_setting

server:
port: 9092
port: 8083

0 comments on commit d907d08

Please sign in to comment.