Skip to content
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions Nginx/config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,17 @@ server {
proxy_set_header Upgrade $http_upgrade; # Upgrade 헤더 전달
proxy_set_header Connection "Upgrade"; # Connection 헤더 전달
}

# SSE 전용 endpoint: /api/notifications/subscribe
location /api/notifications/subscribe {
proxy_pass http://green; # Blue나 Green으로 CD 때 sed 치환

proxy_http_version 1.1;
proxy_set_header Connection '';
chunked_transfer_encoding off;
proxy_buffering off;

proxy_cache off;
proxy_read_timeout 3600; # 1시간
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// 채팅 관련
"/api/chat/list/**",
"/ws/**",
"/api/notifications/**",

"/actuator/prometheus"
).permitAll()
Expand Down