Add shorter URLs for upload
This commit is contained in:
parent
2f523075ae
commit
19fc0c0957
2 changed files with 18 additions and 2 deletions
|
@ -23,7 +23,7 @@ services:
|
||||||
- ./data/img:/usr/share/nginx/html:ro
|
- ./data/img:/usr/share/nginx/html:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.img.rule=Host(`img.theorangeone.net`)"
|
- "traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)"
|
||||||
- "traefik.http.routers.img.tls=true"
|
- "traefik.http.routers.img.tls=true"
|
||||||
- "traefik.http.routers.img.tls.certresolver=le"
|
- "traefik.http.routers.img.tls.certresolver=le"
|
||||||
|
|
||||||
|
@ -45,6 +45,6 @@ services:
|
||||||
- ./data/download:/usr/share/nginx/html:ro
|
- ./data/download:/usr/share/nginx/html:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`)"
|
- "traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)"
|
||||||
- "traefik.http.routers.dl.tls=true"
|
- "traefik.http.routers.dl.tls=true"
|
||||||
- "traefik.http.routers.dl.tls.certresolver=le"
|
- "traefik.http.routers.dl.tls.certresolver=le"
|
||||||
|
|
|
@ -25,3 +25,19 @@ resource "cloudflare_record" "orngone_who" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "orngone_img" {
|
||||||
|
zone_id = cloudflare_zone.orngone.id
|
||||||
|
name = "img"
|
||||||
|
value = vultr_server.grimes.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "orngone_dl" {
|
||||||
|
zone_id = cloudflare_zone.orngone.id
|
||||||
|
name = "dl"
|
||||||
|
value = vultr_server.grimes.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue