Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}

location = /v3/api-docs {
# 정확히 일치(=)로 매칭하면 swagger-ui가 실제 스펙 위치를 알아내려고 추가로 요청하는
# /v3/api-docs/swagger-config 가 이 location을 안 타고 SPA fallback으로 떨어져
# swagger-ui가 기본 데모 스펙(petstore)으로 폴백된다. prefix로 하위 경로까지 잡는다.
location /v3/api-docs {
proxy_pass http://backend:8080/v3/api-docs;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
Loading