summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2020-05-07 06:57:43 +0200
committerRomain Porte <microjoe@microjoe.org>2020-05-07 06:57:43 +0200
commitc7b8af187163403f93e4a666e964837298212394 (patch)
tree38ee40d4197a0bb7c8c45bcd04486409cedb1e21
parent4e92ccfc7f2cc9bfb91463911c2073b62f25e4d2 (diff)
downloadMicroJoe.nginx-staticwebsite-c7b8af187163403f93e4a666e964837298212394.tar.gz
MicroJoe.nginx-staticwebsite-c7b8af187163403f93e4a666e964837298212394.zip
remove nginx_rewrite_html
-rw-r--r--defaults/main.yml1
-rw-r--r--templates/nginx.j26
2 files changed, 0 insertions, 7 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index ab9655a..6e6d7a2 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -1,7 +1,6 @@
---
# defaults file for MicroJoe.staticwebsite
-nginx_rewrite_html: false
nginx_autoindex: false
nginx_custom: ""
diff --git a/templates/nginx.j2 b/templates/nginx.j2
index 749c4ba..ed7c12d 100644
--- a/templates/nginx.j2
+++ b/templates/nginx.j2
@@ -43,13 +43,7 @@ server {
autoindex on;
{% endif %}
- {% if nginx_rewrite_html %}
- rewrite ^(/.+)\.html$ $1;
- try_files $uri.html $uri $uri/ =404;
- default_type text/html;
- {% else %}
try_files $uri $uri/ =404;
- {% endif %}
{% if nginx_auth_file %}
auth_basic "Restricted";