typo in nginx name

This commit is contained in:
Abhishek
2017-04-25 11:14:35 +05:30
parent d24879f881
commit ec85012a8c
11 changed files with 8 additions and 8 deletions
@@ -0,0 +1,8 @@
# Set nginx base image
FROM nginx
# File Author / Maintainer
MAINTAINER Anand Mani Sankar
# Copy custom configuration file from the current directory
COPY nginx.conf /etc/nginx/nginx.conf
+26
View File
@@ -0,0 +1,26 @@
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;
}
}
}