From ac4a93e0ed256f038e20611583f249f405930b3f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 17 Jan 2021 12:49:23 +0000 Subject: [PATCH] Setup DNS for pages --- ansible/roles/pages/files/docker-compose.yml | 4 ++++ terraform/theorangeone.net.tf | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ansible/roles/pages/files/docker-compose.yml b/ansible/roles/pages/files/docker-compose.yml index 6d5dd2d..7fff91e 100644 --- a/ansible/roles/pages/files/docker-compose.yml +++ b/ansible/roles/pages/files/docker-compose.yml @@ -11,6 +11,10 @@ services: environment: - MINIO_ACCESS_KEY={{ minio_access_key }} - MINIO_SECRET_KEY={{ minio_secret_key }} + labels: + - traefik.enable=true + - traefik.http.routers.upload.rule=Host(`pages.theorangeone.net`) + - traefik.http.routers.upload.tls.certresolver=le traefik-pages: image: theorangeone/traefik-pages:latest diff --git a/terraform/theorangeone.net.tf b/terraform/theorangeone.net.tf index d2ed904..b7b4d0b 100644 --- a/terraform/theorangeone.net.tf +++ b/terraform/theorangeone.net.tf @@ -149,10 +149,10 @@ resource "cloudflare_record" "theorangeonenet_plausible_bare" { ttl = 1 } -resource "cloudflare_record" "theorangeonenet_gitlab_pages" { +resource "cloudflare_record" "theorangeonenet_pages" { zone_id = cloudflare_zone.theorangeonenet.id name = "pages" - value = var.walker_ip + value = linode_instance.grimes.ip_address type = "A" ttl = 1 } @@ -168,7 +168,7 @@ resource "cloudflare_record" "theorangeonenet_gitlab_pages_wildcard" { resource "cloudflare_record" "theorangeonenet_notes" { zone_id = cloudflare_zone.theorangeonenet.id name = "notes" - value = cloudflare_record.theorangeonenet_gitlab_pages.hostname + value = cloudflare_record.theorangeonenet_pages.hostname type = "CNAME" ttl = 1 }