2024-09-24 22:49:37 -04:00
|
|
|
# another virtual host using mix of IP-, name-, and port-based configuration
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
|
|
|
|
location /api/ {
|
|
|
|
proxy_pass http://localhost:3001/api/;
|
2024-10-08 23:24:48 -04:00
|
|
|
|
|
|
|
# WebSocket support
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2024-09-24 22:49:37 -04:00
|
|
|
}
|
|
|
|
location / {
|
|
|
|
proxy_pass http://localhost:3000/;
|
|
|
|
}
|
|
|
|
}
|