2024-04-24 18:44:38 +00:00
|
|
|
server {
|
2024-04-24 18:57:09 +00:00
|
|
|
server_name {{ domain }};
|
2024-04-24 18:44:38 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|