diff --git a/docs/content/reference/static-configuration/env-ref.md b/docs/content/reference/static-configuration/env-ref.md index 786a123ba..b3cc34b1f 100644 --- a/docs/content/reference/static-configuration/env-ref.md +++ b/docs/content/reference/static-configuration/env-ref.md @@ -135,10 +135,10 @@ Default certificate resolver for the routers linked to the entry point. `TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS`: Default TLS domains for the routers linked to the entry point. -`TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS[n]_MAIN`: +`TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS_n_MAIN`: Default subject name. -`TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS[n]_SANS`: +`TRAEFIK_ENTRYPOINTS__HTTP_TLS_DOMAINS_n_SANS`: Subject alternative names. `TRAEFIK_ENTRYPOINTS__HTTP_TLS_OPTIONS`: diff --git a/internal/gendoc.go b/internal/gendoc.go index 3e7e51bab..6e6290ec3 100644 --- a/internal/gendoc.go +++ b/internal/gendoc.go @@ -64,7 +64,12 @@ THIS FILE MUST NOT BE EDITED BY HAND continue } - w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ") + if prefix == "" { + w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "_n") + "`: ") + } else { + w.writeln("`" + prefix + strings.ReplaceAll(flat.Name, "[0]", "[n]") + "`: ") + } + if flat.Default == "" { w.writeln(flat.Description) } else {