typo in nginx name
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user