mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Where http does not redirect to https. These are package mirrors and the web key directory.
20 lines
716 B
Django/Jinja
20 lines
716 B
Django/Jinja
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name {{ arch32_mirror_domain }} pool.mirror.archlinux32.org;
|
|
root {{ arch32_mirror_dir }};
|
|
|
|
access_log /var/log/nginx/{{ arch32_mirror_domain }}/access.log reduced;
|
|
error_log /var/log/nginx/{{ arch32_mirror_domain }}/error.log;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
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;
|
|
}
|