Skip to content

Commit

Permalink
[Feat]: s3, doc yml 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Sep 24, 2024
1 parent 2b9d15e commit e953690
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
10 changes: 10 additions & 0 deletions zzansuni-api-server/app/src/main/resources/application-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
springdoc:
default-consumes-media-type: application/json;charset=UTF-8
default-produces-media-type: application/json;charset=UTF-8
use-fqn: true # 패키지 경로를 포함한 클래스명으로 문서화 (FOR inner static class)
---
spring: # dev,prod profile
config:
activate:
on-profile: dev, prod
server-url: ${SERVER_URL}
15 changes: 15 additions & 0 deletions zzansuni-api-server/app/src/main/resources/application-s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
spring: # dev,prod profile
config:
activate:
on-profile: dev, prod
cloud:
aws:
s3.bucket: ${S3_BUCKET}
credentials:
access-key: ${S3_ACCESS_KEY}
secret-key: ${S3_SECRET_KEY}
region:
static: ap-northeast-2
auto: false
stack:
auto: false
24 changes: 3 additions & 21 deletions zzansuni-api-server/app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ spring: # default test profile
- database
- jwt
- oauth2
- s3
- doc
servlet:
multipart:
max-file-size: 5MB
max-request-size: 10MB
resolve-lazily: true # 파일 업로드 시점에 메모리에 저장
lifecycle:
timeout-per-shutdown-phase: 15s # 스프링이 종료될때 모든 작업이 종료될때 까지 기다리는 시간
springdoc:
default-consumes-media-type: application/json;charset=UTF-8
default-produces-media-type: application/json;charset=UTF-8
use-fqn: true # 패키지 경로를 포함한 클래스명으로 문서화 (FOR inner static class)
server:
shutdown: graceful
tomcat:
Expand All @@ -33,20 +31,4 @@ server:
tomcat:
threads:
max: 200 # 최대 스레드 수 (기본값 200)
min-spare: 10 # 최소 스레드 수 (기본값 10)
---
spring: # dev,prod profile
config:
activate:
on-profile: dev, prod
cloud:
aws:
s3.bucket: ${S3_BUCKET}
credentials:
access-key: ${S3_ACCESS_KEY}
secret-key: ${S3_SECRET_KEY}
region:
static: ap-northeast-2
auto: false
stack:
auto: false
min-spare: 10 # 최소 스레드 수 (기본값 10)

0 comments on commit e953690

Please sign in to comment.