-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
41 lines (35 loc) · 979 Bytes
/
nginx.conf
File metadata and controls
41 lines (35 loc) · 979 Bytes
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
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
server_tokens off;
server {
listen 80 reuseport;
server_name _;
# Location for main index page
location = / {
root /mnt/reports/;
add_before_body /.theme/header.html;
add_after_body /.theme/footer.html;
autoindex_exact_size off;
autoindex on;
}
# Location for matching all subfolders
location ~ ^(/.*)/$ {
root /mnt/reports/ ;
add_before_body /.theme/header.html;
add_after_body /.theme/footer.html;
autoindex_exact_size off;
autoindex on;
}
# Location for service the html files without theme
location / {
alias /mnt/reports/;
autoindex_exact_size off;
autoindex on;
}
}
}