You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
408 B
17 lines
408 B
# another virtual host using mix of IP-, name-, and port-based configuration
|
|
|
|
server {
|
|
listen 8080;
|
|
|
|
location /api/ {
|
|
proxy_pass http://localhost:3001/api/;
|
|
|
|
# WebSocket support
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
}
|
|
location / {
|
|
proxy_pass http://localhost:3000/;
|
|
}
|
|
} |