Created stripped down default nginx virtual host configuration

This commit is contained in:
2019-11-24 16:31:06 -06:00
parent 8a31ccb6ac
commit e3cdb84192
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,21 @@
server {
listen 80 default_server;
listen [::]:80 default_server;
root {{ nginx_root }};
index {{ nginx_index | join(' ') }};
server_name _;
location / {
try_files $uri $uri/ =404;
}
{% if nginx_acme_challenge_enabled %}
location /.well-known/acme-challenge/ {
alias {{ nginx_acme_challenge_path }};
try_files $uri $uri/ =404;
}
{% endif %}
}