Skip to content

Commit

Permalink
revert certificates config upstream docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffy-mathew committed Sep 12, 2024
1 parent b1dc70c commit 6bb6182
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,10 @@ type CoProcessConfig struct {

type CertificatesConfig struct {
API []string `json:"apis"`
// Specify upstream mutual TLS certificates at a global level in the following format: `{ "<host>": "<cert>" }``
// Upstream is used to specify the certificates to be used in mutual TLS connections to upstream services. These are set at gateway level as a map of domain -> certificate id or path.
// For example if you want Tyk to use the certificate `ab23ef123` for requests to the `example.com` upstream and `/certs/default.pem` for all other upstreams then:
// In `tyk.conf` you would configure `"security": {"certificates": {"upstream": {"*": "/certs/default.pem", "example.com": "ab23ef123"}}}`
// And if using environment variables you would set this to `*:/certs/default.pem,example.com:ab23ef123`.
Upstream map[string]string `json:"upstream"`
// Certificates used for Control API Mutual TLS
ControlAPI []string `json:"control_api"`
Expand Down

0 comments on commit 6bb6182

Please sign in to comment.