-
Notifications
You must be signed in to change notification settings - Fork 0
docs: 스웨거 문서 정리 및 업로드 문제 해결 #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2bc2dd7
feat: Swagger 공통 에러 응답 전역 문서화
chazy-d 00ba82f
docs: 공개 엔드포인트 인증 방식 명시
chazy-d b3045bb
test: Swagger 문서 커버리지 회귀 테스트
chazy-d 6735404
docs: 모든 엔드포인트에 호출 규칙 설명 추가
chazy-d afddaed
fix: nginx 업로드 한도 미설정으로 1MB 초과 요청 차단
chazy-d 4a0cdb6
docs: 스웨거 예시의 인물명 교체
chazy-d c17afb5
fix: 업로드 한도 초과 요청이 500 으로 나가던 문제
chazy-d a8470c7
Merge branch 'main' into docs/swagger-api-descriptions
chazy-d fb5a44b
fix: 마이그레이션 버전 016 중복 해소
chazy-d 680f4ef
fix: nginx 설정 검사 실패 시 기존 설정 복원
chazy-d 2237b78
docs: 초대 링크 재조회 설명 정정
chazy-d f371a53
feat: multipart 엔드포인트에 413 응답 문서화
chazy-d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # nginx 업로드 제한. /etc/nginx/conf.d/ 에 놓이며 http 블록 안에서 include 된다. | ||
| # | ||
| # 이 파일이 없으면 nginx 는 client_max_body_size 기본값 1MB 로 동작한다. | ||
| # 앱과 프론트가 100MB 로 맞춰져 있어도 1MB 를 넘는 요청은 nginx 가 413 으로 끊어 | ||
| # 스프링에 닿지도 않는다. 그래서 서비스 코드의 검증 로직은 실행조차 되지 않고, | ||
| # 응답도 공통 래퍼가 아닌 nginx 기본 HTML 이라 프론트가 원인을 표시하지 못한다. | ||
| # | ||
| # certbot 이 관리하는 server 블록은 건드리지 않는다. | ||
| # 여기에 두면 http 레벨에 적용되어 모든 server/location 으로 상속된다. | ||
|
|
||
| # 앱의 spring.servlet.multipart.max-request-size(105MB)와 맞춘다. | ||
| # 파일 본문에 JSON 파트와 멀티파트 경계가 더해지므로 개별 파일 한도(100MB)보다 커야 한다. | ||
| client_max_body_size 105M; | ||
|
|
||
| # 큰 파일은 앱이 S3 업로드를 마친 뒤에야 응답한다. | ||
| # 기본값 60초로는 100MB 근처에서 504 가 난다. 파일은 올라갔는데 실패로 보이는 상태가 된다. | ||
| proxy_read_timeout 300s; | ||
| proxy_send_timeout 300s; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
기존 Nginx 설정을 삭제하지 말고 복원하십시오.
Line 86의
nginx -t가 실패하면 Line 88이 현재TARGET을 삭제합니다. 기존upload-limits.conf가 있던 서버에서는 이전 설정이 복원되지 않습니다. 이후 Nginx가 재시작되면 업로드 제한과 타임아웃 설정이 사라집니다.교체 전
TARGET을 백업하십시오. 검증 실패 시 백업을 다시 복원하십시오. 대상 파일이 원래 없던 경우에만 삭제하십시오.🤖 Prompt for AI Agents