test(snippets): add tests for snippets includes

based on #275

fixes #274
This commit is contained in:
Javier Bértoli 2021-04-13 17:42:48 -03:00
parent c55120acf2
commit 1c83b6d5fa

View File

@ -2,7 +2,6 @@
# vim: ft=yaml # vim: ft=yaml
--- ---
# Simple pillar setup # Simple pillar setup
# - snippet letsencrypt
# - remove 'default' site # - remove 'default' site
# - create 'mysite' site # - create 'mysite' site
@ -21,10 +20,6 @@ nginx:
lookup: lookup:
passenger_package: {{ passenger_pkg }} passenger_package: {{ passenger_pkg }}
snippets:
letsencrypt.conf:
- location ^~ /.well-known/acme-challenge/:
- proxy_pass: http://localhost:9999
server: server:
config: config:
# This is required to get the passenger module loaded # This is required to get the passenger module loaded
@ -63,4 +58,3 @@ nginx:
- index: 'index.html index.htm' - index: 'index.html index.htm'
- location ~ .htm: - location ~ .htm:
- try_files: '$uri $uri/ =404' - try_files: '$uri $uri/ =404'
- include: '/etc/nginx/snippets/letsencrypt.conf'