From 4742552839404064cb258423421c30c1b6445664 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 30 Sep 2020 18:49:36 +0100 Subject: [PATCH] Add notes site --- ansible/roles/gitlab_pages/files/docker-compose.yml | 7 ++++++- terraform/theorangeone.net.tf | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ansible/roles/gitlab_pages/files/docker-compose.yml b/ansible/roles/gitlab_pages/files/docker-compose.yml index 48a3ae3..4be7d14 100644 --- a/ansible/roles/gitlab_pages/files/docker-compose.yml +++ b/ansible/roles/gitlab_pages/files/docker-compose.yml @@ -22,13 +22,18 @@ services: restart: unless-stopped labels: - traefik.enable=true + - traefik.http.routers.gitlab-pages.middlewares=compress@file + - traefik.http.routers.gitlab-pages.rule=HostRegexp(`{subdomain:[a-z]+}.pages.theorangeone.net`) - traefik.http.routers.gitlab-pages.tls.certresolver=le - traefik.http.routers.gitlab-pages.tls.domains[0].main=pages.theorangeone.net - traefik.http.routers.gitlab-pages.tls.domains[0].sans=*.pages.theorangeone.net - traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.port=8080 - traefik.http.services.gitlab-pages-gitlab-pages.loadbalancer.server.scheme=http - - traefik.http.routers.gitlab-pages.middlewares=compress@file + + - traefik.http.routers.gitlab-pages-notes.rule=Host(`notes.theorangeone.net`) + - traefik.http.routers.gitlab-pages-notes.tls.certresolver=le + - traefik.http.routers.gitlab-pages-notes.service=gitlab-pages-gitlab-pages ssh-server: image: linuxserver/openssh-server:latest diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index 3d0b06e..fd3725d 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -172,3 +172,11 @@ resource "cloudflare_record" "theorangeonenet_gitlab_pages_wildcard" { type = "A" ttl = 1 } + +resource "cloudflare_record" "theorangeonenet_notes" { + zone_id = cloudflare_zone.theorangeonenet.id + name = "notes" + value = cloudflare_record.theorangeonenet_gitlab_pages.hostname + type = "CNAME" + ttl = 1 +}