add template
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Wed, 4 Feb 2015 03:38:27 +0000 (22:38 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Wed, 4 Feb 2015 03:38:27 +0000 (22:38 -0500)
ch02/playbooks/templates/nginx.conf.j2 [new file with mode: 0644]

diff --git a/ch02/playbooks/templates/nginx.conf.j2 b/ch02/playbooks/templates/nginx.conf.j2
new file mode 100644 (file)
index 0000000..e33c871
--- /dev/null
@@ -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;
+        }
+}