Setup DNS for pages
This commit is contained in:
parent
b992df0313
commit
ac4a93e0ed
2 changed files with 7 additions and 3 deletions
|
@ -11,6 +11,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- MINIO_ACCESS_KEY={{ minio_access_key }}
|
- MINIO_ACCESS_KEY={{ minio_access_key }}
|
||||||
- MINIO_SECRET_KEY={{ minio_secret_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:
|
traefik-pages:
|
||||||
image: theorangeone/traefik-pages:latest
|
image: theorangeone/traefik-pages:latest
|
||||||
|
|
|
@ -149,10 +149,10 @@ resource "cloudflare_record" "theorangeonenet_plausible_bare" {
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "theorangeonenet_gitlab_pages" {
|
resource "cloudflare_record" "theorangeonenet_pages" {
|
||||||
zone_id = cloudflare_zone.theorangeonenet.id
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
name = "pages"
|
name = "pages"
|
||||||
value = var.walker_ip
|
value = linode_instance.grimes.ip_address
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ resource "cloudflare_record" "theorangeonenet_gitlab_pages_wildcard" {
|
||||||
resource "cloudflare_record" "theorangeonenet_notes" {
|
resource "cloudflare_record" "theorangeonenet_notes" {
|
||||||
zone_id = cloudflare_zone.theorangeonenet.id
|
zone_id = cloudflare_zone.theorangeonenet.id
|
||||||
name = "notes"
|
name = "notes"
|
||||||
value = cloudflare_record.theorangeonenet_gitlab_pages.hostname
|
value = cloudflare_record.theorangeonenet_pages.hostname
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue