From 755699c186d5cd835569ba11b239d535276a71f5 Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Feb 02 2022 16:20:10 +0000 Subject: - forbit the delivery of files below .svn and .git repositories --- diff --git a/pillar/role/web_jekyll.sls b/pillar/role/web_jekyll.sls index 4176328..b2bffed 100644 --- a/pillar/role/web_jekyll.sls +++ b/pillar/role/web_jekyll.sls @@ -36,6 +36,10 @@ nginx: - application/x-javascript - application/javascript - expires: $expires + - location ~ /\.svn: + - return 404 + - location ~ /\.git: + - return 404 - location /: - index: - index.html diff --git a/pillar/role/web_static.sls b/pillar/role/web_static.sls index 4ae6291..293dd72 100644 --- a/pillar/role/web_static.sls +++ b/pillar/role/web_static.sls @@ -36,6 +36,10 @@ nginx: - application/x-javascript - application/javascript - expires: $expires + - location ~ /\.svn: + - return 404 + - location ~ /\.git: + - return 404 - location /: - index: - index.html