From ddc2ce5c70d06593ec3f0061a9a531ca6e58ead8 Mon Sep 17 00:00:00 2001 From: Kevin Simper Date: Fri, 17 May 2019 21:39:40 +0200 Subject: [PATCH] Update configmap about adding custom locations --- docs/user-guide/nginx-configuration/configmap.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/user-guide/nginx-configuration/configmap.md b/docs/user-guide/nginx-configuration/configmap.md index 37974a67c..f6ee4c017 100755 --- a/docs/user-guide/nginx-configuration/configmap.md +++ b/docs/user-guide/nginx-configuration/configmap.md @@ -751,6 +751,8 @@ Adds custom configuration to all the servers in the nginx configuration. Adds custom configuration to all the locations in the nginx configuration. +You can not use this to add new locations that proxy to the Kubernetes pods, as the snippet does not have access to the Go template functions. If you want to add custom locations you will have to [provide your own nginx.tmpl](https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/custom-template/). + ## custom-http-errors Enables which HTTP codes should be passed for processing with the [error_page directive](http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page)