-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx-vhost.conf
48 lines (40 loc) · 1.34 KB
/
nginx-vhost.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
server {
listen 80 reuseport default_server;
listen [::]:80 reuseport default_server;
listen 443 ssl http2 reuseport default_server; # do your own SSL settings
listen [::]:443 ssl http2 reuseport default_server;
server_name _;
root /mirrors; # if mirrors and web stored together
#autoindex on; # if no fancyindex
fancyindex on;
fancyindex_exact_size off;
fancyindex_time_format "%Y-%m-%d %H:%M";
#fancyindex_header /_static/fancy/_header.html; # if ssi
#fancyindex_footer /_static/fancy/_footer.html; # if ssi
fancyindex_header /_static/fancy/header.html;
fancyindex_footer /_static/fancy/footer.html;
#fancyindex_max_stats 8192; # fancyindex custom
#fancyindex_max_entries 32768; # fancyindex custom
location = / {
#ssi on; # if ssi
#index _index$arg_noscript.html; # if ssi
index index$arg_noscript.html;
}
location ^~ /_ {
#ssi on; # if ssi
#index _index$arg_noscript.html; # if ssi
index index$arg_noscript.html;
expires -1;
}
location ^~ /_api/ {
expires -1;
alias /tmp/api/; # change to shine API_DIR
}
location ^~ /_static/ {
expires 1d;
}
location ^~ /_static/lib/ {
expires 30d;
}
include /opt/shine/instance/custom_nginx.conf; # generated by shine
}