-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
26 lines (22 loc) · 704 Bytes
/
nginx.conf
File metadata and controls
26 lines (22 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
events {
worker_connections 1024;
}
http {
server {
listen 8080;
server_name 192.168.1.91;
# note: nginx is not trimming location it is forwading it to service, suppose url was localhost/api/v1/abc than service receives api/vi/abc
location /api {
proxy_pass http://go-api-gateway:8889;
}
location /secureAPI {
proxy_pass http://go-api-gateway:8889;
}
location /ws1 {
proxy_pass http://go-stats:9000; # Replace with your WebSocket server address
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}