Commit | Line | Data |
---|---|---|
b28c22ee | 1 | run: |
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" | |
4ca0945c | 22 | from: /listen 443 ssl http2;/ |
b28c22ee | 23 | to: | |
4ca0945c | 24 | listen unix:/shared/nginx.https.sock ssl http2; |
81c17556 | 25 | set_real_ip_from unix:; |