This repository was archived by the owner on Apr 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
54 lines (45 loc) · 1.24 KB
/
nginx.conf
File metadata and controls
54 lines (45 loc) · 1.24 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
user www-data;
worker_processes 10;
pid /run/nginx.pid;
events {
worker_connections 768;
multi_accept on;
}
http {
#Basic Settings
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type applicatio/octet-stream;
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm;
server_name _;
location /streamjpg/{
proxy_pass http://localhost:8090/test.mjpg;
}
location /streammpg/{
proxy_pass http://localhost:8090/test.mpeg;
}
location /streammpeg4/{
proxy_pass http://localhost:8090/test.mpeg4;
}
location /streamflv/{
proxy_pass http://localhost:8090/test.flv;
}
location /streamwebm/{
proxy_pass http://localhost:8090/test.webm;
}
location /{
try_files $uri $uri/ /index.html;
}
}
}