-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
32 lines (27 loc) · 753 Bytes
/
nginx.conf
File metadata and controls
32 lines (27 loc) · 753 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
user nginx;
worker_processes auto;
worker_rlimit_nofile 15000;
pid /var/run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
error_log /dev/stdout info;
events {
worker_connections 2048;
multi_accept on;
use epoll;
}
http {
access_log /dev/stdout;
# make sure to cut http connection after ws upgrade
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
# MJPEG proxy
# include /etc/nginx/conf.d/mjpeg-proxy.conf;
# Secure MJPEG proxy
include /etc/nginx/conf.d/mjpeg-secure-proxy.conf;
# Websocket proxy
# include /etc/nginx/conf.d/ws-proxy.conf;
# Secure websocket proxy
# include /etc/nginx/conf.d/wss-proxy.conf;
}