Setup shorter yourls domain
This commit is contained in:
parent
ef083badc1
commit
95c3e46783
2 changed files with 10 additions and 2 deletions
|
@ -12,12 +12,12 @@ services:
|
||||||
- YOURLS_DB_USER=yourls
|
- YOURLS_DB_USER=yourls
|
||||||
- YOURLS_USER=jake
|
- YOURLS_USER=jake
|
||||||
- YOURLS_PASS={{ yourls.user_password }}
|
- YOURLS_PASS={{ yourls.user_password }}
|
||||||
- YOURLS_SITE=https://go.theorangeone.net
|
- YOURLS_SITE=https://0rng.one
|
||||||
volumes:
|
volumes:
|
||||||
- ./index.html:/var/www/html/index.html
|
- ./index.html:/var/www/html/index.html
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "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=true"
|
||||||
- "traefik.http.routers.yourls.tls.certresolver=le"
|
- "traefik.http.routers.yourls.tls.certresolver=le"
|
||||||
|
|
||||||
|
|
|
@ -9,3 +9,11 @@ resource "cloudflare_record" "orngone_git" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "orngone_yourls" {
|
||||||
|
zone_id = cloudflare_zone.orngone.id
|
||||||
|
name = "@"
|
||||||
|
value = vultr_server.casey.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue