Setup DNS for pages

This commit is contained in:
Jake Howard 2021-01-17 12:49:23 +00:00
parent b992df0313
commit ac4a93e0ed
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 3 deletions

View file

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

View file

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