From f230724f3f3b53a81151c496eafaecc974f8ebdf Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Tue, 11 Mar 2025 14:37:29 +0100 Subject: [PATCH] add annoation examples to nginx --- .../src/content/docs/guides/ingress/nginx.md | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/website/src/content/docs/guides/ingress/nginx.md b/website/src/content/docs/guides/ingress/nginx.md index 97b501fba8f..bbe834028af 100644 --- a/website/src/content/docs/guides/ingress/nginx.md +++ b/website/src/content/docs/guides/ingress/nginx.md @@ -3,4 +3,31 @@ title: NGINX --- -TBD +## Annotations Examples + +Here we will showcase some annotations you can use to customise your NGINX ingress behavior + +### Auth + +For Authelia, Authentik and more + +``` +annotations: + nginx.ingress.kubernetes.io/auth-method: 'GET' + nginx.ingress.kubernetes.io/auth-url: 'http://authelia.default.svc.cluster.local/api/authz/auth-request' + nginx.ingress.kubernetes.io/auth-signin: 'https://auth.example.com?rm=$request_method' + nginx.ingress.kubernetes.io/auth-response-headers: 'Remote-User,Remote-Name,Remote-Groups,Remote-Email' +``` + +### Themepark + +``` +annotations: + nginx.ingress.kubernetes.io/configuration-snippet: | + proxy_set_header Accept-Encoding ""; + sub_filter + '' + ' + '; + sub_filter_once on; +```