File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,37 @@ server {
2222 proxy_read_timeout 300s ;
2323 }
2424
25+ # ===== WebSocket bridges (nội bộ qua Docker network) =====
26+ # Coding runner WS
27+ location /ws/code {
28+ proxy_pass http ://coding-service:4098 ;
29+ proxy_http_version 1.1;
30+ proxy_set_header Host $host ;
31+ proxy_set_header Upgrade $http_upgrade ;
32+ proxy_set_header Connection "upgrade" ;
33+ proxy_read_timeout 600s ;
34+ }
35+
36+ # Chat WS
37+ location /ws/chat {
38+ proxy_pass http ://chat-service:4099 ;
39+ proxy_http_version 1.1;
40+ proxy_set_header Host $host ;
41+ proxy_set_header Upgrade $http_upgrade ;
42+ proxy_set_header Connection "upgrade" ;
43+ proxy_read_timeout 600s ;
44+ }
45+
46+ # Notification WS
47+ location /ws/notify {
48+ proxy_pass http ://notification-service:4101 ;
49+ proxy_http_version 1.1;
50+ proxy_set_header Host $host ;
51+ proxy_set_header Upgrade $http_upgrade ;
52+ proxy_set_header Connection "upgrade" ;
53+ proxy_read_timeout 600s ;
54+ }
55+
2556 # Cache
2657 location ~ * \.(?:js|css|png|jpg|jpeg|gif|svg|ico|woff2?|ttf|map)$ {
2758 try_files $uri =404 ;
You can’t perform that action at this time.
0 commit comments