-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
37 lines (30 loc) · 988 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
server {
listen 80;
location = /favicon.png {
root /usr/share/nginx/.res/;
access_log off;
log_not_found off;
}
location / {
root /usr/share/nginx/html/;
add_before_body /../.autoindex/header.html;
add_after_body /../.autoindex/footer.html;
autoindex_format html;
autoindex_localtime on;
autoindex_exact_size on;
autoindex on;
sub_filter '<html>\r\n<head><title>Index of $uri</title></head>' '';
sub_filter '<body bgcolor="white">' '';
sub_filter '</body>' '';
sub_filter '<hr>' '';
sub_filter '<hr>' '';
sub_filter '</html>' '';
sub_filter_once on;
charset utf-8;
}
location = /health-check {
access_log off;
default_type text/html;
return 200 'alive';
}
}