Skip to content

Commit 0508d68

Browse files
authored
Merge pull request #269 from MJSEC-MJU/hotfix/first
fix: 파일용량 제한 10mb -> 200mb
2 parents 9d3342d + 4b30b2a commit 0508d68

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

Back/src/main/resources/application.properties

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ server.servlet.encoding.charset=UTF-8
99
server.servlet.encoding.force=true
1010
spring.security.user.name=${SPRING_SECURITY_USER_NAME}
1111
spring.security.user.password=${SPRING_SECURITY_USER_PASSWORD}
12-
spring.servlet.multipart.max-file-size=10MB
13-
spring.servlet.multipart.max-request-size=10MB
12+
spring.servlet.multipart.max-file-size=200MB
13+
spring.servlet.multipart.max-request-size=200MB
14+
15+
# Tomcat large payload tuning
16+
server.tomcat.max-http-form-post-size=200MB
17+
server.tomcat.max-swallow-size=-1
1418

1519
# ========================================
1620
# Auto-Ban Configuration (산업 표준 기반)
@@ -81,4 +85,4 @@ auto-ban.suspicious-payload.ban-duration-minutes=120
8185
# 효과: 스캐닝 도구만 차단
8286
auto-ban.not-found.max-attempts=50
8387
auto-ban.not-found.time-window-minutes=5
84-
auto-ban.not-found.ban-duration-minutes=30
88+
auto-ban.not-found.ban-duration-minutes=30

nginx/default.http.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ server {
1616
proxy_set_header X-Real-IP $remote_addr;
1717
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1818
proxy_set_header X-Forwarded-Proto $scheme;
19-
client_max_body_size 50m;
19+
client_max_body_size 200m;
2020
}
2121

2222
# Backend API
@@ -29,7 +29,7 @@ server {
2929
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3030
proxy_set_header X-Forwarded-Proto $scheme;
3131
proxy_set_header Authorization $http_authorization;
32-
client_max_body_size 20m;
32+
client_max_body_size 200m;
3333
}
3434

3535
# SSE

nginx/default.https.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ server {
3838
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
3939
proxy_set_header X-Forwarded-Proto $scheme;
4040

41-
client_max_body_size 50m;
41+
client_max_body_size 200m;
4242
}
4343

4444
# Backend API
@@ -56,7 +56,7 @@ server {
5656
proxy_set_header X-Forwarded-Proto $scheme;
5757
proxy_set_header Authorization $http_authorization;
5858

59-
client_max_body_size 20m;
59+
client_max_body_size 200m;
6060
}
6161

6262
# SSE

0 commit comments

Comments
 (0)