如何在NGINX Ingress Controller中配置ssl_prefer_server_ciphers?

时间:2019-11-05 06:34:38

标签: nginx kubernetes-ingress nginx-ingress

我需要在NGINX Ingress Controller中将ssl_prefer_server_ciphers设置为on

不幸的是,我无法找到如何在其配置中进行操作 https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/

NGINX Ingress Controller中ssl_prefer_server_ciphers的默认值是什么?

(NGINX中的默认值为off

是否可以在NGINX Ingress Controller中将值设置为on

1 个答案:

答案 0 :(得分:1)

根据https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/

In order to overwrite nginx-controller configuration values as seen in config.go, you can add key-value pairs to the data section of the config-map.

因此,配置为

data:
  ssl_prefer_server_ciphers: "on"