summaryrefslogtreecommitdiffstats
path: root/templates/mirror/nginx/dl.amnesia.boum.org.erb
blob: 8c397d47a77a624ab37a4082c4343563884c30ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
    server_name dl.amnesia.boum.org;
    listen 80; ## listen for ipv4; this line is default and implied
    <% if @ipaddress6 -%>
    listen [::]:80 ipv6only=on; ## listen for ipv6
    <% end -%>

    root <%= @mirror_path %>;
    access_log <%= @access_log %>;
    error_log <%= @error_log %>;

    location = /favicon.ico {
        return 204;
        access_log     off;
        log_not_found  off;
    }

    location / {
        autoindex on;
    }
}