Closes #501. Before: the SNI hostname had to be edited in haproxy.cfg, plus DOMAIN had to be set in .env for Caddy. Two places to keep in sync. After: DOMAIN is the single source — set it once in .env (or export), docker-compose forwards it into both haproxy and caddy containers, and HAProxy interpolates ${DOMAIN} into the SNI ACL at startup. mtg-config.toml's secret still embeds the domain in its bytes (generated once with `mtg generate-secret <domain>`), so that one remains a one-time edit at install — the README is updated to reflect this. HAProxy has supported environment-variable substitution in config strings since 1.6.pull/502/head
|
|
||
| 27 |
|
27 |
|
| 28 |
|
28 |
|
| 29 |
|
29 |
|
| 30 |
|
|
|
| 31 |
|
|
|
| 32 |
|
|
|
| 33 |
|
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
| 34 |
|
33 |
|
| 35 |
|
34 |
|
| 36 |
|
35 |
|
|
|
||
| 83 |
|
82 |
|
| 84 |
|
83 |
|
| 85 |
|
84 |
|
| 86 |
|
|
|
|
85 |
|
|
| 87 |
|
86 |
|
| 88 |
|
87 |
|
| 89 |
|
88 |
|
|
|
||
| 9 |
|
9 |
|
| 10 |
|
10 |
|
| 11 |
|
11 |
|
| 12 |
|
|
|
| 13 |
|
|
|
| 14 |
|
|
|
| 15 |
|
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
| 16 |
|
18 |
|
| 17 |
|
19 |
|
| 18 |
|
20 |
|
|
|
||
| 24 |
|
26 |
|
| 25 |
|
27 |
|
| 26 |
|
28 |
|
|
29 |
|
|
|
30 |
|
|
| 27 |
|
31 |
|
| 28 |
|
32 |
|
| 29 |
|
33 |
|
|
|
||
| 39 |
|
39 |
|
| 40 |
|
40 |
|
| 41 |
|
41 |
|
| 42 |
|
|
|
| 43 |
|
|
|
| 44 |
|
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
| 45 |
|
46 |
|
| 46 |
|
47 |
|
| 47 |
|
48 |
|