From: Lorin Hochstein Date: Wed, 4 Feb 2015 03:38:27 +0000 (-0500) Subject: add template X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=7ccafa5767ad6520ff364746a07fadf65295aafe;p=ansiblebook.git add template --- 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; + } +}