Add web.socketed.template.yml for nginx sockets
authorriking <rikingcoding@gmail.com>
Fri, 13 Mar 2015 22:08:27 +0000 (15:08 -0700)
committerriking <rikingcoding@gmail.com>
Fri, 13 Mar 2015 22:08:27 +0000 (15:08 -0700)
templates/web.socketed.template.yml [new file with mode: 0644]

diff --git a/templates/web.socketed.template.yml b/templates/web.socketed.template.yml
new file mode 100644 (file)
index 0000000..6432de0
--- /dev/null
@@ -0,0 +1,12 @@
+
+run:
+  - replace:
+     filename: "/etc/nginx/conf.d/discourse.conf"
+     from: /listen 80;/
+     to: |
+       listen unix:/shared/nginx.http.sock;
+  - replace:
+     filename: "/etc/nginx/conf.d/discourse.conf"
+     from: /listen 443 ssl spdy;/
+     to: |
+       listen unix:/shared/nginx.https.sock ssl spdy;