2024-04-21 09:37:46 -04:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name {{ item.name }};
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
server_name {{ item.name }};
|
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ item.name }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ item.name }}/privkey.pem;
|
2024-04-22 08:49:49 -04:00
|
|
|
index index.html;
|
2024-04-22 10:14:39 -04:00
|
|
|
autoindex {{ item.autoindex | default('off') }};
|
2024-04-22 08:49:49 -04:00
|
|
|
root {{ item.root }};
|
2024-04-21 09:37:46 -04:00
|
|
|
location / {
|
|
|
|
}
|
|
|
|
}
|