Add Nginx config type "listing"

This commit is contained in:
Alex Kotov 2020-05-19 03:34:11 +05:00
parent 70c9ef82e0
commit e86191ddf3
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
server {
listen 80;
listen [::]:80;
server_name {{ item.domain }};
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ item.domain }};
ssl_certificate {{ item.cert }};
ssl_certificate_key {{ item.key }};
include {{ item.ssl_conf }};
root {{ item.root }};
try_files $uri $uri/ =404;
charset utf-8;
autoindex on;
}