-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
39 lines (27 loc) · 877 Bytes
/
nginx.conf
File metadata and controls
39 lines (27 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
events {}
http {
server_tokens off;
include /etc/nginx/mime.types;
gzip on;
gzip_types text/plain application/octet-stream;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
log_format simple "$remote_addr - $request : $status";
error_log syslog:server=unix:/dev/log;
access_log syslog:server=unix:/dev/log simple;
server {
server_name app5;
listen 0.0.0.0:80;
location /favicon.ico { return 404; }
location /client.html { alias /home/app/EslWebSocketApp/client.html; }
location /socket {
proxy_pass http://127.0.0.1:8765;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 86400s;
}
}
}