kompose/script/test/fixtures/ngnix-node-redis/nginx/nginx.conf
Suraj Deshmukh 9a4e953555 Functional Testing
Shell scripts to test k8s and os conversion
which can be ran by following command in root dir
`./script/test/cmd/tests.sh`
2016-08-08 04:39:10 +00:00

27 lines
623 B
Nginx Configuration File

worker_processes 4;
events { worker_connections 1024; }
http {
upstream node-app {
least_conn;
server node1:8080 weight=60 max_fails=10 fail_timeout=60s;
server node2:8080 weight=60 max_fails=10 fail_timeout=60s;
server node3:8080 weight=60 max_fails=10 fail_timeout=60s;
}
server {
listen 80;
location / {
proxy_pass http://node-app;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}