TLS.md: Clarify how to set --default-ssl-certificate
This commit is contained in:
parent
451a01bb0a
commit
f65c8f0aaa
1 changed files with 3 additions and 1 deletions
|
@ -31,7 +31,9 @@ The resulting secret will be of type `kubernetes.io/tls`.
|
||||||
|
|
||||||
NGINX provides the option to configure a server as a catch-all with [server_name](http://nginx.org/en/docs/http/server_names.html) for requests that do not match any of the configured server names. This configuration works without issues for HTTP traffic.
|
NGINX provides the option to configure a server as a catch-all with [server_name](http://nginx.org/en/docs/http/server_names.html) for requests that do not match any of the configured server names. This configuration works without issues for HTTP traffic.
|
||||||
In case of HTTPS, NGINX requires a certificate.
|
In case of HTTPS, NGINX requires a certificate.
|
||||||
For this reason the Ingress controller provides the flag `--default-ssl-certificate`. The secret behind this flag contains the default certificate to be used in the mentioned scenario. If this flag is not provided NGINX will use a self signed certificate.
|
For this reason the Ingress controller provides the flag `--default-ssl-certificate`. The secret referred to by this flag contains the default certificate to be used when accessing the catch-all server. If this flag is not provided NGINX will use a self-signed certificate.
|
||||||
|
|
||||||
|
For instance, if you have a TLS secret `foo-tls` in the `default` namespace, add `--default-ssl-certificate=default/foo-tls` in the `nginx-controller` deployment.
|
||||||
|
|
||||||
Running without the flag `--default-ssl-certificate`:
|
Running without the flag `--default-ssl-certificate`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue