1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/repo_archive_split_temp/templates/nginx.d.conf.j2
Christian Heusel c31dd3309d
prepare the split of repo and archive server
related to https://gitlab.archlinux.org/archlinux/infrastructure/-/issues/531

Co-authored-by: Kristian Klausen <kristian@klausen.dk>
Signed-off-by: Christian Heusel <christian@heusel.eu>
2024-05-04 22:14:41 +02:00

26 lines
758 B
Django/Jinja

server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name {{ repos_rsync_domain }};
root /srv/ftp;
include snippets/letsencrypt.conf;
ssl_certificate /etc/letsencrypt/live/{{ repos_rsync_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ repos_rsync_domain }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ repos_rsync_domain }}/chain.pem;
access_log /var/log/nginx/{{ repos_rsync_domain }}/access.log reduced;
access_log /var/log/nginx/{{ repos_rsync_domain }}/access.log.json json_reduced;
location = /lastupdate {
allow all;
}
location / {
deny all;
}
}