-
Notifications
You must be signed in to change notification settings - Fork 8
/
default.conf
58 lines (46 loc) · 1.19 KB
/
default.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
server {
listen 51980;
# listen [::]:51980;
client_max_body_size 5000m;
# For wecom verify
location ~* ^/WW_verify_[^.]+\.txt$ {
root /opt/jumpserver/data/;
}
# For acme challenge
location /.well-known/ {
root /opt/jumpserver/data/;
}
location = /robots.txt {
default_type text/html;
add_header Content-Type "text/plain; charset=UTF-8";
return 200 "User-agent: *\nDisallow: /\n";
}
location /web/health/ {
access_log off;
add_header Content-Type 'application/json';
return 200 '{"status": "ok"}';
}
location /player/ {
try_files $uri / /index.html;
alias /opt/player/;
}
location /ui/ {
try_files $uri / /index.html;
alias /opt/lina/;
}
location /luna/ {
try_files $uri / /index.html;
alias /opt/luna/;
}
location /download/ {
alias /opt/download/;
try_files $uri @redirect_oss;
}
location @redirect_oss {
rewrite ^/download/(.*)$ http://static.jumpserver.org/download/$1 permanent;
}
location / {
rewrite ^/(.*)$ /ui/$1 last;
}
include includes/*.conf;
}