summaryrefslogtreecommitdiffstats
path: root/roles/nginx/files/default
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nginx/files/default')
-rw-r--r--roles/nginx/files/default2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/nginx/files/default b/roles/nginx/files/default
index 2b909ce..cfec4b2 100644
--- a/roles/nginx/files/default
+++ b/roles/nginx/files/default
@@ -2,6 +2,7 @@ server {
listen 80 default_server;
listen [::]:80 default_server;
+ include snippets/acme.conf;
include snippets/common.conf;
root /var/www/html;
@@ -12,5 +13,6 @@ server {
location / {
try_files $uri $uri/ =404;
+ return 301 https://$host$request_uri;
}
}