Skip to content

Conversation

@haywoodsh
Copy link

@haywoodsh haywoodsh commented Dec 12, 2025

Adds documentation for the configurable HTTP redirect codes feature and the nginx.org/ssl-redirect annotation.

Proposed changes

Checklist

Before sharing this pull request, I completed the following checklist:

Footnotes

  1. Potentially sensitive information includes personally identify information (PII), authentication credentials, and live URLs. Refer to the style guide for guidance about placeholder content.

…nd the nginx.org/ssl-redirect annotation.

Signed-off-by: Haywood Shannon <5781935+haywoodsh@users.noreply.github.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation product/nic Issues related to NGINX Ingress Controller labels Dec 12, 2025
@github-actions
Copy link

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/docs/1570/

@haywoodsh haywoodsh requested a review from Copilot December 12, 2025 18:49
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for configurable HTTP redirect codes and updates SSL redirect annotation references. The changes enable users to customize the HTTP status code used for HTTPS redirects (supporting 301, 302, 307, 308) via the new http-redirect-code ConfigMap key and nginx.org/http-redirect-code annotation.

Key changes:

  • Introduces the http-redirect-code ConfigMap key to allow customization of HTTP redirect status codes
  • Updates nginx.org/ssl-redirect annotation to replace the deprecated ingress.kubernetes.io/ssl-redirect
  • Clarifies redirect behavior in annotations and ConfigMap documentation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
content/nic/install/migrate-ingress-nginx.md Updates migration guide to reference the new nginx.org/ssl-redirect annotation and adds note about nginx.org/redirect-to-https for force-ssl-redirect behavior
content/nic/configuration/virtualserver-and-virtualserverroute-resources.md Adds http-redirect-code to the list of customizable ConfigMap keys for VirtualServer resources
content/nic/configuration/ingress-resources/advanced-configuration-with-annotations.md Documents the new http-redirect-code annotation, updates redirect annotation descriptions, and deprecates ingress.kubernetes.io/ssl-redirect
content/nic/configuration/global-configuration/configmap-resource.md Documents the http-redirect-code ConfigMap key and updates redirect descriptions to reference the new configuration option

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@haywoodsh haywoodsh changed the title NIC: http-redirect-code ConfigMap key and and nginx.org/ssl-redirect annotation NIC: http-redirect-code ConfigMap key and nginx.org/ssl-redirect annotation Dec 12, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation product/nic Issues related to NGINX Ingress Controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants