nginx.d.conf.j2 968 Bytes
Newer Older
1
2
3
server {
    listen       80;
    listen       [::]:80;
4
    server_name  {{ arch32_mirror_domain }} pool.mirror.archlinux32.org;
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
    root         {{ arch32_mirror_dir }};

    access_log   /var/log/nginx/{{ arch32_mirror_domain }}/access.log;
    error_log    /var/log/nginx/{{ arch32_mirror_domain }}/error.log;

    include snippets/letsencrypt.conf;

    autoindex on;
}

server {
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name  {{ arch32_mirror_domain }};
    root         {{ arch32_mirror_dir }};

    access_log   /var/log/nginx/{{ arch32_mirror_domain }}/access.log;
    error_log    /var/log/nginx/{{ arch32_mirror_domain }}/error.log;

    ssl_certificate      /etc/letsencrypt/live/{{ arch32_mirror_domain }}/fullchain.pem;
    ssl_certificate_key  /etc/letsencrypt/live/{{ arch32_mirror_domain }}/privkey.pem;
    ssl_trusted_certificate /etc/letsencrypt/live/{{ arch32_mirror_domain }}/chain.pem;

    autoindex on;
}