Add snippets and config

This commit is contained in:
root
2018-06-28 15:57:14 +02:00
parent 62861295b0
commit 6d76f57a54
6 changed files with 41 additions and 1 deletions

11
snippets/letsencrypt.conf Normal file
View File

@@ -0,0 +1,11 @@
# -*-nginx-*-
location /.well-known/ {
default_type "text/plain";
root /var/www/html;
}
location = /.well-known/acme-challenge/ {
return 404;
}
location / {
return 301 https://$host$request_uri;
}