www: redirect alias hostnames (e.g. apex) to canonical origin

Adds www_redirect_hostnames; renders a www-redirect ingress that 301s
to https://<www_hostname>$request_uri while leaving more specific paths
on the same host (e.g. /.well-known/matrix/*) to their own ingresses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 13:04:11 -05:00
co-authored by Claude Opus 5.5
parent eea6389a5a
commit f59d2b72fb
5 changed files with 47 additions and 1 deletions
+2
View File
@@ -15,6 +15,8 @@ www_repo_url: https://git.example.com/organization/www.git
www_namespace: www
www_hostname: www.example.com
www_ingress_class: nginx
# Extra hostnames 301-redirected to https://{{ www_hostname }} (e.g. [eom.dev]).
www_redirect_hostnames: []
www_cluster_issuer: letsencrypt-prod
# Set to your published website image, including any required metrics exporter.
www_httpd_image: registry.example.com/organization/www:release