forked from streamium/streamium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
55 lines (41 loc) · 942 Bytes
/
nginx.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
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/ubuntu;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location ~ ^/testnet/config.js?$ {
try_files $uri $uri/ =404;
}
location ~ ^/b/(?<stream>.+)$ {
rewrite ^ /index.html last;
}
location ~ ^/s/(?<stream>.+)$ {
rewrite ^ /index.html last;
}
location ~ ^/screen?$ {
rewrite ^ /index.html last;
}
location ~ ^/tutorial-address/?$ {
rewrite ^ /index.html last;
}
location / {
try_files $uri $uri/ =404;
}
location ~ ^/t/config.js?$ {
rewrite ^ /testnet/config.js last;
}
location ~ ^/t/s/(?<stream>.+)$ {
rewrite ^ /testnet/index.html last;
}
location ~ ^/t/b/(?<stream>.+)$ {
rewrite ^ /testnet/index.html last;
}
location ~ ^/t/screen/?$ {
rewrite ^ /testnet/index.html last;
}
location ~ ^/t/?$ {
rewrite ^ /testnet/index.html last;
}
}