Skip to content

Comments

Add option for services to redirect a base domain to www. for ALB#16

Merged
mwojo merged 2 commits intomainfrom
add-www-redirects
Jan 10, 2025
Merged

Add option for services to redirect a base domain to www. for ALB#16
mwojo merged 2 commits intomainfrom
add-www-redirects

Conversation

@mwojo
Copy link
Contributor

@mwojo mwojo commented Jan 10, 2025

Adds a redirectHostToWWW option which takes the base domain to apply a www redirect to and creates the relevant ALB annotations.

This option seems a little overly specific and like it could be a map allowing arbitrary redirects to any of a service's hostnames, but went with this since our only existing use case is for redirecting sevenfifty.com domains to www and to avoid adding a lot of extra go template code that might not be used.

Adds a redirectHostToWWW option which takes the base domain to apply a
www redirect to and creates the relevant ALB annotations.

This option seems a little overly specific and like it could be a map
allowing arbitrary redirects to any of a service's hostnames, but went
with this since our only existing use case is for redirecting
sevenfifty.com domains to www and to avoid adding a lot of extra go
template code that might not be used.
Copy link
Contributor

@creisor creisor left a comment

Choose a reason for hiding this comment

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

Awesome!

@mwojo mwojo merged commit b490382 into main Jan 10, 2025
@mwojo mwojo deleted the add-www-redirects branch January 10, 2025 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants