server {
server_name kong;
listen 0.0.0.0:8000;
listen 0.0.0.0:8443 ssl;
…
ssl_certificate /usr/local/kong/ssl/kong-default.crt;
ssl_certificate_key /usr/local/kong/ssl/kong-default.key;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
…
ssl_session_cache shared:SSL:10m;
…
# injected nginx_proxy_* directives
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
ssl_certificate_key /etc/kong/certs/my-key.pem;
ssl_certificate /etc/kong/certs/my-cer.pem;
…
}
As you can see, the custom injected directives are just added and are NOT replaced. Will the later ones override?
In the logs:
nginx: [warn] duplicate value “TLSv1.1” in /usr/local/kong/nginx-kong.conf:79
nginx: [warn] duplicate value “TLSv1.2” in /usr/local/kong/nginx-kong.conf:79
nginx: [warn] duplicate value “TLSv1.3” in /usr/local/kong/nginx-kong.conf:79