Setup slides domain
This commit is contained in:
parent
41582f50db
commit
6d890a6991
2 changed files with 18 additions and 0 deletions
|
@ -9,6 +9,9 @@ http:
|
|||
router-gitlab-pages:
|
||||
rule: HostRegexp(`gitlab-pages.theorangeone.net`, `{subdomain:[a-z]+}.gitlab-pages.theorangeone.net`)
|
||||
service: service-gitlab-pages
|
||||
router-slides:
|
||||
rule: Host(`slides.jakehoward.tech`)
|
||||
service: service-slides
|
||||
services:
|
||||
service-gitlab:
|
||||
loadBalancer:
|
||||
|
@ -18,3 +21,10 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- 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
|
||||
|
|
|
@ -187,3 +187,11 @@ resource "cloudflare_record" "jakehowardtech_mailgun_dmarc" {
|
|||
type = "TXT"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue