Skip to content

Commit 7c98149

Browse files
committed
hotfix : 사진 크기 용량 10M로 수정
1 parent 2285114 commit 7c98149

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

nginx/default.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ server {
66

77
location /.well-known/acme-challenge/ {
88
root /var/www/certbot;
9+
client_max_body_size 10m;
910
allow all;
1011
}
1112

1213
location / {
14+
client_max_body_size 10m;
1315
return 301 https://$host$request_uri;
1416
}
1517
}
@@ -19,12 +21,15 @@ server {
1921
listen 443 ssl;
2022
server_name growinserver.shop;
2123

24+
client_max_body_size 10m;
25+
2226
ssl_certificate /etc/letsencrypt/live/growinserver.shop/fullchain.pem;
2327
ssl_certificate_key /etc/letsencrypt/live/growinserver.shop/privkey.pem;
2428
ssl_protocols TLSv1.2 TLSv1.3;
2529
ssl_ciphers HIGH:!aNULL:!MD5;
2630

2731
location / {
32+
client_max_body_size 10m;
2833
proxy_pass http://tinybite-api-blue:8080;
2934
proxy_set_header Host $host;
3035
proxy_set_header X-Real-IP $remote_addr;

src/main/resources/application.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ spring:
44
application:
55
name: tinybite
66

7+
servlet:
8+
multipart:
9+
max-file-size: 10MB
10+
max-request-size: 10MB
11+
712
profiles:
813
group:
914
local: 'local'

0 commit comments

Comments
 (0)