Skip to content

Commit 51336e8

Browse files
committed
GETP-323 chore: application.yml을 각 모듈에 대해 분리
1 parent bc9c15b commit 51336e8

File tree

15 files changed

+192
-854
lines changed

15 files changed

+192
-854
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ local.sh
106106
# Static Resources
107107
**/src/main/resources/static/docs/*
108108
**/src/main/resources/static/oas/*
109-
./storage
109+
storage/*
110110

111111
# Yml File
112112
local-docker-compose.yml
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
server:
2+
port: ${SPRING_PORT}
3+
servlet:
4+
context-path: ${BASE_PATH}
5+
6+
spring:
7+
servlet:
8+
multipart:
9+
max-file-size: 5MB
10+
11+
springdoc:
12+
api-docs:
13+
enabled: false
14+
swagger-ui:
15+
path: ${SWAGGER_PATH}
16+
url: /oas/openapi3.yaml
17+
18+
---
19+
spring:
20+
config:
21+
activate:
22+
on-profile: local
23+
24+
logging:
25+
level:
26+
es.princip.getp: DEBUG
27+
org:
28+
springframework:
29+
security: DEBUG
30+
31+
---
32+
spring:
33+
config:
34+
activate:
35+
on-profile: dev
36+
37+
logging:
38+
level:
39+
es.princip.getp: DEBUG
40+
org:
41+
springframework:
42+
security: DEBUG

get-p-api/src/main/resources/application-dev.yml

Lines changed: 0 additions & 114 deletions
This file was deleted.

get-p-api/src/main/resources/application-local.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
spring:
2+
config:
3+
import:
4+
- api-config.yml
5+
- app-config.yml
6+
- persistence-config.yml
7+
- infra-config.yml
8+
9+
---
10+
spring:
11+
config:
12+
activate:
13+
on-profile: local
14+
15+
---
16+
spring:
17+
config:
18+
activate:
19+
on-profile: dev
20+
21+
management:
22+
endpoints:
23+
web:
24+
exposure:
25+
include: prometheus
26+
base-path: ${MONITORING_URL}
27+
enabled-by-default: false
28+
jmx:
29+
exposure:
30+
exclude: '*'
31+
include: info, health
32+
endpoint:
33+
prometheus:
34+
enabled: true
35+
info:
36+
enabled: true
37+
health:
38+
enabled: true

get-p-application/src/main/java/es/princip/getp/application/member/service/ProfileImageService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private ProfileImage saveProfileImage(final Member member, final MultipartFile i
6767
}
6868

6969
private Path getPathToSaveProfileImage(final Member member, final MultipartFile image) {
70-
final String memberId = String.valueOf(member.getId());
70+
final String memberId = String.valueOf(member.getId().getValue());
7171
final String fileName = StringUtil.generateRandomFilename(image.getOriginalFilename());
7272
return Paths.get(memberId).resolve(PROFILE_IMAGE_PREFIX).resolve(fileName);
7373
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
spring:
2+
mail:
3+
host: smtp.gmail.com
4+
port: ${GMAIL_PORT}
5+
username: ${GMAIL_USERNAME}
6+
password: ${GMAIL_PASSWORD}
7+
properties:
8+
mail:
9+
smtp:
10+
auth: true
11+
starttls:
12+
enable: true
13+
required: true
14+
connectiontimeout: 5000
15+
timeout: 5000
16+
writetimeout: 5000
17+
templates:
18+
logo: classpath:/static/logo.png
19+
20+
verification-code:
21+
length: ${VERIFICATION_CODE_LENGTH}
22+
expire-time: ${VERIFICATION_CODE_EXPIRE_TIME}
23+
24+
jwt:
25+
secret: ${JWT_SECRET}
26+
access-token:
27+
expire-time: ${JWT_ACCESS_TOKEN_EXPIRE_TIME}
28+
refresh-token:
29+
expire-time: ${JWT_REFRESH_TOKEN_EXPIRE_TIME}
30+
teammate-approval-token:
31+
expire-time: ${JWT_TEAMMATE_APPROVAL_TOKEN_EXPIRE_TIME}
32+
33+
messages:
34+
basename: messages/validation, messages/messages

0 commit comments

Comments
 (0)