Merge pull request #208 from Stealthii/feature/http2
[discourse_docker.git] / templates / web.socketed.template.yml
CommitLineData
b28c22ee 1run:
a59e9e6c
S
2 - file:
3 path: /etc/runit/1.d/remove-old-socket
4 chmod: "+x"
5 contents: |
6 #!/bin/bash
7 rm -f /shared/nginx.http*.sock
8 - file:
9 path: /etc/runit/3.d/remove-old-socket
10 chmod: "+x"
11 contents: |
12 #!/bin/bash
13 rm -f /shared/nginx.http*.sock
b28c22ee 14 - replace:
15 filename: "/etc/nginx/conf.d/discourse.conf"
16 from: /listen 80;/
17 to: |
18 listen unix:/shared/nginx.http.sock;
81c17556 19 set_real_ip_from unix:;
b28c22ee 20 - replace:
21 filename: "/etc/nginx/conf.d/discourse.conf"
22 from: /listen 443 ssl spdy;/
23 to: |
24 listen unix:/shared/nginx.https.sock ssl spdy;
81c17556 25 set_real_ip_from unix:;