Add notes site

This commit is contained in:
Jake Howard 2020-09-30 18:49:36 +01:00
parent 4e7c5ffd67
commit 4742552839
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 14 additions and 1 deletions

View file

@ -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

View file

@ -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
}