mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Using a cert named after the primary domain with `_legacy` appended. However, the cert is only issued for the legacy domains, not the primary domain. Deploy for `ipxe.archlinux.org`. Fixes: https://gitlab.archlinux.org/archlinux/releng/-/issues/22
54 lines
1.7 KiB
Django/Jinja
54 lines
1.7 KiB
Django/Jinja
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
server_name {{ domain['domain_name'] }};
|
|
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log reduced;
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log.json json_reduced;
|
|
error_log /var/log/nginx/{{ archweb_domain }}/error.log;
|
|
|
|
include snippets/letsencrypt.conf;
|
|
|
|
location / {
|
|
access_log off;
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
server_name {{ domain['domain_name'] }};
|
|
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log reduced;
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log.json json_reduced;
|
|
error_log /var/log/nginx/{{ archweb_domain }}/error.log;
|
|
|
|
ssl_ciphers AES128-SHA:AES256-SHA:AES128-SHA256:AES256-SHA256;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ archweb_domain }}_legacy/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ archweb_domain }}_legacy/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ archweb_domain }}_legacy/chain.pem;
|
|
|
|
location /releng/netboot/ {
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log main;
|
|
access_log /var/log/nginx/{{ archweb_domain }}/access.log.json json_main;
|
|
include uwsgi_params;
|
|
uwsgi_pass archweb;
|
|
}
|
|
|
|
# Cache django's css, js and png files.
|
|
location /static/ {
|
|
expires 30d;
|
|
add_header Pragma public;
|
|
add_header Cache-Control "public";
|
|
alias /srv/http/archweb/collected_static/;
|
|
}
|
|
|
|
location / {
|
|
access_log off;
|
|
return 301 https://{{ archweb_domain }}$request_uri;
|
|
}
|
|
}
|