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
7 changes: 1 addition & 6 deletions nginx/nginx.dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ http {
keepalive 32;
}

upstream kokomen-nest-server-dev {
server kokomen-nest-server-dev:3001;
keepalive 32;
}

# 공통 로그 포맷
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
Expand Down Expand Up @@ -126,7 +121,7 @@ http {
add_header Referrer-Policy strict-origin-when-cross-origin always;

location /api/v3 {
proxy_pass http://kokomen-nest-server-dev;
proxy_pass http://api_server;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

이 변경으로 인해 location /api/v3 블록(123-134행)의 proxy_passlocation / 블록(136-151행)과 동일한 http://api_server를 가리키게 되었습니다. 두 location 블록의 나머지 설정도 사실상 동일하므로, location /api/v3 블록이 불필요해 보입니다.

설정 파일을 단순화하고 중복을 제거하기 위해 이 블록을 삭제하는 것을 고려해 보세요. location / 블록이 /api/v3를 포함한 모든 요청을 처리할 수 있습니다.

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
Expand Down
Loading