Setup slides domain

This commit is contained in:
Jake Howard 2022-10-08 17:37:24 +01:00
parent 41582f50db
commit 6d890a6991
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 18 additions and 0 deletions

View file

@ -9,6 +9,9 @@ http:
router-gitlab-pages: router-gitlab-pages:
rule: HostRegexp(`gitlab-pages.theorangeone.net`, `{subdomain:[a-z]+}.gitlab-pages.theorangeone.net`) rule: HostRegexp(`gitlab-pages.theorangeone.net`, `{subdomain:[a-z]+}.gitlab-pages.theorangeone.net`)
service: service-gitlab-pages service: service-gitlab-pages
router-slides:
rule: Host(`slides.jakehoward.tech`)
service: service-slides
services: services:
service-gitlab: service-gitlab:
loadBalancer: loadBalancer:
@ -18,3 +21,10 @@ http:
loadBalancer: loadBalancer:
servers: servers:
- url: http://{{ pve_hosts.gitlab.ip }}:8008 - url: http://{{ pve_hosts.gitlab.ip }}:8008
# HACK: GitLab doesn't support `_redirects` with domains in
service-slides:
loadBalancer:
passHostHeader: false
servers:
- url: https://slides.gitlab-pages.theorangeone.net

View file

@ -187,3 +187,11 @@ resource "cloudflare_record" "jakehowardtech_mailgun_dmarc" {
type = "TXT" type = "TXT"
ttl = 1 ttl = 1
} }
resource "cloudflare_record" "jakehowardtech_slides" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "slides"
value = cloudflare_record.theorangeonenet_gitlab_pages.hostname
type = "CNAME"
ttl = 1
}