pyinfra-nginx/pyinfra_nginx/redirect.nginx_config.j2

13 lines
351 B
Plaintext
Raw Normal View History

server {
2024-04-24 18:57:09 +00:00
server_name {{ domain }};
return 301 {{ redirect }};
listen [::]:443 ssl;
listen 443 ssl;
ssl_certificate /var/lib/acme/live/{{ domain }}/fullchain;
ssl_certificate_key /var/lib/acme/live/{{ domain }}/privkey;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}