EveryUniv/next-student-council-backend

[With-Dankook] 채팅방 파일 업로드 시, Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)

Closed this issue · 1 comments

로컬 환경에서는 이미지 또는 파일 업로드에 문제가 없었으나
개발 서버에서 파일 업로드를 했을 때, 아래 오류가 발생했음

Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
Nginx 설정 이슈로 파악됨

nginx 환경 파일에 접근해서 편집

vi /etc/nginx/nginx.conf

서버 업로드 크기(사이즈) 설정

http {
    client_max_body_size {제한 사이즈}
}

nginx 재시작

service nginx restart