From f2c92e94e2407a78c8b7adeb73479b062a5434c1 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 23 May 2020 22:30:39 +0200 Subject: [PATCH] nginx: Moved index directive from root snippet to specific static role --- roles/nginx/application/templates/root.conf | 2 -- roles/nginx/static/templates/static.conf | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/nginx/application/templates/root.conf b/roles/nginx/application/templates/root.conf index f890e04..9430e3f 100644 --- a/roles/nginx/application/templates/root.conf +++ b/roles/nginx/application/templates/root.conf @@ -1,3 +1 @@ include {{ nginx_snippets_directory }}/global; - -index index.html index.htm; diff --git a/roles/nginx/static/templates/static.conf b/roles/nginx/static/templates/static.conf index 491a48c..09d2652 100644 --- a/roles/nginx/static/templates/static.conf +++ b/roles/nginx/static/templates/static.conf @@ -7,6 +7,7 @@ server { ssl_certificate {{ acme_certificate_location }}; ssl_certificate_key {{ acme_key_location }}; + index index.html index.htm; root {{ root_directory }}; include {{ nginx_snippets_directory }}/https;