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 }