Commit ae4887a
authored
letsencrypt updates: renew location for .well-known, add support for multiple hostnames (#992)
* FEATURE: add DISCOURSE_HOSTNAME_ALIASES
add comma-separated DISCOURSE_HOSTNAME_ALIASES to handle multiple aliases
for letsencrypt domain generation over env vars
FIX: add letsencrypt renew location for .well-known
and allow for multi-domain renewal
Add /.well-known location in /var/www/discourse/public.
Allow .well-known on http to continue to serve traffic without redirects
Allows for letsencrypt cert renewals to work properly.
With DISCOURSE_HOSTNAME of example.com...
multiple domains are not able to renew if they cannot access such as
http://alternate.example.com
...which redirects under the current https config.
FIX: better listening for ipv6 for ipv4 only
Current letsencrypt assumes ipv6 in config. Check for ipv6 before listening
* remove commented multi_accept line
* Bundle well-known location http passthrough into base ssl template.
* Always configure to listen on ipv4 and v61 parent a60c564 commit ae4887a
File tree
2 files changed
+16
-7
lines changed- templates
2 files changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
74 | 80 | | |
75 | | - | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| |||
0 commit comments