Selaa lähdekoodia

contrib/sni-router: align mtg-config.toml comments with $DOMAIN flow

Comments said 'Replace example.com everywhere' which became stale once
$DOMAIN drives haproxy.cfg + Caddyfile + docker-compose. Reword so the
user's mental model is: pick a domain, generate the secret with it,
put it in .env once.
pull/502/head
Alexey Dolotov 1 viikko sitten
vanhempi
commit
dbb05e9cfa
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      contrib/sni-router/mtg-config.toml

+ 3
- 3
contrib/sni-router/mtg-config.toml Näytä tiedosto

1
 # Minimal mtg configuration for the SNI-router setup.
1
 # Minimal mtg configuration for the SNI-router setup.
2
 #
2
 #
3
-# 1. Generate a secret:  mtg generate-secret --hex example.com
4
-# 2. Paste it below.
5
-# 3. Replace example.com with your actual domain everywhere.
3
+# 1. Generate a secret:  mtg generate-secret --hex <your.domain>
4
+# 2. Paste it into the `secret` field below.
5
+# 3. Set DOMAIN=<your.domain> in .env (HAProxy + Caddy pick it up).
6
 
6
 
7
 secret = "PASTE_YOUR_SECRET_HERE"
7
 secret = "PASTE_YOUR_SECRET_HERE"
8
 bind-to = "0.0.0.0:3128"
8
 bind-to = "0.0.0.0:3128"

Loading…
Peruuta
Tallenna