Skip to content

Commit 0687067

Browse files
FIX: add letsencrypt renew location for .well-known
Add /.well-known location in /var/www/discourse/public. Allows letsencrypt cert renewals to work properly.
1 parent 661f61a commit 0687067

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/web.letsencrypt.ssl.template.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ run:
66
cmd:
77
- curl https://raw.githubusercontent.com/acmesh-official/acme.sh/3.0.6/acme.sh > /opt/acme.sh
88
- chmod +x /opt/acme.sh
9+
- file:
10+
path: "/etc/nginx/conf.d/outlets/server/20-well-known-location.conf"
11+
contents: |
12+
location ~ /.well-known {
13+
root /var/www/discourse/public;
14+
allow all;
15+
}
916
- file:
1017
path: "/usr/local/bin/configure-letsencrypt"
1118
chmod: "+x"

0 commit comments

Comments
 (0)