From 7ccafa5767ad6520ff364746a07fadf65295aafe Mon Sep 17 00:00:00 2001 From: Lorin Hochstein Date: Tue, 3 Feb 2015 22:38:27 -0500 Subject: [PATCH] add template --- ch02/playbooks/templates/nginx.conf.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ch02/playbooks/templates/nginx.conf.j2 diff --git a/ch02/playbooks/templates/nginx.conf.j2 b/ch02/playbooks/templates/nginx.conf.j2 new file mode 100644 index 0000000..e33c871 --- /dev/null +++ b/ch02/playbooks/templates/nginx.conf.j2 @@ -0,0 +1,17 @@ +server { + listen 80 default_server; + listen [::]:80 default_server ipv6only=on; + + listen 443 ssl; + + root /usr/share/nginx/html; + index index.html index.htm; + + server_name {{ server_name }}; + ssl_certificate {{ cert_file }}; + ssl_certificate_key {{ key_file }}; + + location / { + try_files $uri $uri/ =404; + } +} -- 2.44.0