Skip to content

Commit 64d718c

Browse files
authored
Merge pull request #3 from playfulprogramming/www-redirect
Add porkbun redirect for www subdomain
2 parents f6381f2 + 7ffd342 commit 64d718c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

modules/playful-web/main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,12 @@ resource "porkbun_dns_record" "apex" {
173173
content = each.value
174174
ttl = 600
175175
}
176+
177+
resource "porkbun_url_forward" "redirect" {
178+
domain = var.domain
179+
subdomain = "www"
180+
include_path = true
181+
location = var.domain
182+
type = "permanent"
183+
wildcard = false
184+
}

0 commit comments

Comments
 (0)