Setup shorter yourls domain

This commit is contained in:
Jake Howard 2020-03-20 22:29:43 +00:00
parent ef083badc1
commit 95c3e46783
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 10 additions and 2 deletions

View file

@ -12,12 +12,12 @@ services:
- YOURLS_DB_USER=yourls
- YOURLS_USER=jake
- YOURLS_PASS={{ yourls.user_password }}
- YOURLS_SITE=https://go.theorangeone.net
- YOURLS_SITE=https://0rng.one
volumes:
- ./index.html:/var/www/html/index.html
labels:
- "traefik.enable=true"
- "traefik.http.routers.yourls.rule=Host(`go.theorangeone.net`)"
- "traefik.http.routers.yourls.rule=Host(`go.theorangeone.net`) || Host(`0rng.one`)"
- "traefik.http.routers.yourls.tls=true"
- "traefik.http.routers.yourls.tls.certresolver=le"

View file

@ -9,3 +9,11 @@ resource "cloudflare_record" "orngone_git" {
type = "A"
ttl = 1
}
resource "cloudflare_record" "orngone_yourls" {
zone_id = cloudflare_zone.orngone.id
name = "@"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}