summaryrefslogtreecommitdiff
path: root/nginx/sites.template
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/sites.template')
-rw-r--r--nginx/sites.template13
1 files changed, 13 insertions, 0 deletions
diff --git a/nginx/sites.template b/nginx/sites.template
index ba3c04e..f3c237d 100644
--- a/nginx/sites.template
+++ b/nginx/sites.template
@@ -9,6 +9,19 @@ server {
listen 80;
listen [::]:80;
+
+ location /.well-known/acme-challenge/ {
+ root /var/www/certbot;
+ }
+
+ location / {
+ return 301 https://$host$request_uri;
+ }
+}
+
+server {
+ server_name $NGINX_HOSTNAME;
+
listen 443 ssl;
listen [::]:443;