-
Notifications
You must be signed in to change notification settings - Fork 1
/
dashboard.conf
103 lines (86 loc) · 2.83 KB
/
dashboard.conf
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
server {
listen 80;
server_name 10.2.6.100;
# Static website files
location /static {
alias /srv/dashboard/static;
}
# Webcam and microphone forwarding
location /video/w1m {
set $args "";
proxy_pass http://10.2.6.208/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/goto1 {
set $args "";
proxy_pass http://10.2.6.4/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/goto2 {
set $args "";
proxy_pass http://10.2.6.48/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/sting {
set $args "";
proxy_pass http://10.2.6.172/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/halfmetre {
set $args "";
proxy_pass http://10.2.6.118/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/serverroom {
set $args "";
proxy_pass http://10.2.6.119/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/clasp {
set $args "";
proxy_pass http://10.2.6.193/axis-cgi/mjpg/video.cgi?resolution=1280x960&fps=10;
}
location /video/ext1 {
set $args "";
proxy_pass http://10.2.6.117/axis-cgi/mjpg/video.cgi?resolution=1280x720&fps=10;
}
location /video/ext2 {
set $args "";
proxy_pass http://10.2.6.207/axis-cgi/mjpg/video.cgi?resolution=1280x720&fps=10;
}
location /microphone/w1m {
proxy_pass http://10.2.6.204:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /microphone/goto1 {
proxy_pass http://10.2.6.18:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /microphone/goto2 {
proxy_pass http://10.2.6.49:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /microphone/clasp {
proxy_pass http://10.2.6.188:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /microphone/sting {
proxy_pass http://10.2.6.169:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /microphone/halfmetre {
proxy_pass http://10.2.6.116:9000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Dynamic web content
location / {
uwsgi_pass unix:/srv/dashboard/uwsgi.sock;
include uwsgi_params;
}
}