Add Nginx config type "listing"
This commit is contained in:
parent
70c9ef82e0
commit
e86191ddf3
1 changed files with 27 additions and 0 deletions
27
templates/nginx/listing.conf
Normal file
27
templates/nginx/listing.conf
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue