diff --git a/examples/customization/README.md b/examples/customization/README.md index 5b24561b0c..c89f13898a 100644 --- a/examples/customization/README.md +++ b/examples/customization/README.md @@ -17,7 +17,7 @@ The table below summarizes some of the options. More options (extensions) are av | `nginx.org/proxy-pass-headers` | `proxy-pass-headers` | Sets the value of one or more [proxy_pass_header](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass_header) directives. Example: `"nginx.org/proxy-pass-headers": "header-a,header-b"` | N/A | | N/A | `server-names-hash-bucket-size` | Sets the value of the [server_names_hash_bucket_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#server_names_hash_bucket_size) directive. | Depends on the size of the processor’s cache line. | | N/A | `server-names-hash-max-size` | Sets the value of the [server_names_hash_max_size](http://nginx.org/en/docs/http/ngx_http_core_module.html#server_names_hash_max_size) directive. | `512` | -| `nginx.org/http2` | `http2` | Enables HTTP/2 in servers with SSL enabled. | `False` | +| N/A | `http2` | Enables HTTP/2 in servers with SSL enabled. | `False` | | `nginx.org/redirect-to-https` | `redirect-to-https` | Sets the 301 redirect rule based on the value of the `http_x_forwarded_proto` header on the server block to force incoming traffic to be over HTTPS. Useful when terminating SSL in a load balancer in front of the Ingress controller — see [115](https://github.com/nginxinc/kubernetes-ingress/issues/115) | `False` | | N/A | `log-format` | Sets the custom [log format](http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format). | See the [template file](../../nginx-controller/nginx/nginx.conf.tmpl). | | `nginx.org/hsts` | `hsts` | Enables [HTTP Strict Transport Security (HSTS)](https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/): the HSTS header is added to the responses from backends. The `preload` directive is included in the header. | `False` | diff --git a/nginx-controller/nginx/configurator.go b/nginx-controller/nginx/configurator.go index ee77ef04e9..a13e2d10ef 100644 --- a/nginx-controller/nginx/configurator.go +++ b/nginx-controller/nginx/configurator.go @@ -269,13 +269,6 @@ func (cnf *Configurator) createConfig(ingEx *IngressEx) Config { if clientMaxBodySize, exists := ingEx.Ingress.Annotations["nginx.org/client-max-body-size"]; exists { ingCfg.ClientMaxBodySize = clientMaxBodySize } - if HTTP2, exists, err := GetMapKeyAsBool(ingEx.Ingress.Annotations, "nginx.org/http2", ingEx.Ingress); exists { - if err != nil { - glog.Error(err) - } else { - ingCfg.HTTP2 = HTTP2 - } - } if redirectToHTTPS, exists, err := GetMapKeyAsBool(ingEx.Ingress.Annotations, "nginx.org/redirect-to-https", ingEx.Ingress); exists { if err != nil { glog.Error(err)