summaryrefslogtreecommitdiff
path: root/nginx/nginx.conf
diff options
context:
space:
mode:
authorKapil Viren Ahuja <k.v.ahuja@gmail.com>2017-04-03 11:40:56 +0530
committerKapil Viren Ahuja <k.v.ahuja@gmail.com>2017-04-03 11:40:56 +0530
commit690998874689f12545f931cf53a13f96eb7cc64f (patch)
treeeee41956b9faafe8cf9b5d72906b8f7142d1a05c /nginx/nginx.conf
parent8bdc754c5abbca8b2927de1cb05840faae6336a5 (diff)
downloadvaindock-690998874689f12545f931cf53a13f96eb7cc64f.tar.gz
vaindock-690998874689f12545f931cf53a13f96eb7cc64f.zip
added web sockets proxy
Diffstat (limited to 'nginx/nginx.conf')
-rw-r--r--nginx/nginx.conf45
1 files changed, 27 insertions, 18 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf
index 97e5a0e..b6404b1 100644
--- a/nginx/nginx.conf
+++ b/nginx/nginx.conf
@@ -10,21 +10,30 @@ events {
}
http {
- server_tokens off;
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 15;
- types_hash_max_size 2048;
- client_max_body_size 20M;
- include /etc/nginx/mime.types;
- default_type application/octet-stream;
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- gzip on;
- gzip_disable "msie6";
- include /etc/nginx/conf.d/*.conf;
- include /etc/nginx/sites-available/*;
- open_file_cache max=100;
- charset UTF-8;
-}
+ server_tokens off;
+ sendfile on;
+ tcp_nopush on;
+ tcp_nodelay on;
+ keepalive_timeout 15;
+ types_hash_max_size 2048;
+ client_max_body_size 20M;
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+ access_log /var/log/nginx/access.log;
+ error_log /var/log/nginx/error.log;
+ gzip on;
+ gzip_disable "msie6";
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-available/*;
+ open_file_cache max=100;
+ charset UTF-8;
+
+ map $http_upgrade $connection_upgrade {
+ default upgrade;
+ '' close;
+ }
+
+ upstream websocket {
+ server 192.168.1.2:8010;
+ }
+} \ No newline at end of file