From 1a191846a9c3ffd098b7293257863ac85617ece2 Mon Sep 17 00:00:00 2001 From: Arjan Schaaf Date: Mon, 24 Apr 2017 16:27:56 +0200 Subject: [PATCH] Mentioned in the comments of #180 the annotation for configuration snippets was missing from the configuration documentation --- controllers/nginx/configuration.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/controllers/nginx/configuration.md b/controllers/nginx/configuration.md index b5b19b627..678875046 100644 --- a/controllers/nginx/configuration.md +++ b/controllers/nginx/configuration.md @@ -48,6 +48,7 @@ The following annotations are supported: |[ingress.kubernetes.io/auth-url](#external-authentication)|string| |[ingress.kubernetes.io/auth-tls-secret](#certificate-authentication)|string| |[ingress.kubernetes.io/auth-tls-verify-depth](#certificate-authentication)|number| +|[ingress.kubernetes.io/configuration-snippet](#configuration-snippet)|string| |[ingress.kubernetes.io/enable-cors](#enable-cors)|true or false| |[ingress.kubernetes.io/force-ssl-redirect](#server-side-https-enforcement-through-redirect)|true or false| |[ingress.kubernetes.io/limit-connections](#rate-limiting)|number| @@ -151,6 +152,14 @@ The validation depth between the provided client certificate and the Certificati Please check the [tls-auth](/examples/auth/client-certs/nginx/README.md) example. +### Configuration snippet + +Using this annotion you can add additional configuration to the NGINX location. For example: + +``` +ingress.kubernetes.io/configuration-snippet: | + more_set_headers "Request-Id: $request_id"; +``` ### Enable CORS