mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-09-10 21:20:28 +02:00
26 lines
776 B
Django/Jinja
26 lines
776 B
Django/Jinja
{% for domain in mirror_domains %}
|
|
server {
|
|
include snippets/listen-80.conf;
|
|
|
|
include snippets/listen-443.conf;
|
|
server_name {{ domain }};
|
|
root /srv/ftp;
|
|
|
|
access_log /var/log/nginx/{{ domain }}/access.log reduced;
|
|
access_log /var/log/nginx/{{ domain }}/access.log.json json_reduced;
|
|
error_log /var/log/nginx/{{ domain }}/error.log;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ domain }}/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem;
|
|
|
|
{% if 'geo_mirrors' in group_names and domain == geo_mirror_domain %}
|
|
include snippets/headers.conf;
|
|
add_header X-Served-By "{{ inventory_hostname }}";
|
|
{% endif %}
|
|
|
|
autoindex on;
|
|
}
|
|
{% endfor %}
|