Move upload server to walker

This commit is contained in:
Jake Howard 2020-07-24 17:14:39 +01:00
parent 3c7c0ec3fa
commit f77cd1216f
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 9 additions and 9 deletions

View file

@ -43,9 +43,9 @@
roles: roles:
- website - website
- socks-proxy - socks-proxy
- upload
- hosts: walker - hosts: walker
roles: roles:
- contessa - contessa
- statping - statping
- upload

View file

@ -5,7 +5,7 @@ services:
image: minio/minio:latest image: minio/minio:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data:/data - /mnt/tank/upload:/data
command: server /data --quiet command: server /data --quiet
environment: environment:
- MINIO_ACCESS_KEY={{ minio_access_key }} - MINIO_ACCESS_KEY={{ minio_access_key }}
@ -19,7 +19,7 @@ services:
image: theorangeone/static-server:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/img:/srv:ro - /mnt/tank/upload/img:/srv:ro
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`) - traefik.http.routers.img.rule=Host(`img.theorangeone.net`) || Host(`img.0rng.one`)
@ -29,7 +29,7 @@ services:
image: theorangeone/static-server:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/background:/srv:ro - /mnt/tank/upload/background:/srv:ro
environment: environment:
- FANCY_INDEX=on - FANCY_INDEX=on
labels: labels:
@ -41,7 +41,7 @@ services:
image: theorangeone/static-server:latest image: theorangeone/static-server:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./data/download:/srv:ro - /mnt/tank/upload/download:/srv:ro
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`) - traefik.http.routers.dl.rule=Host(`dl.theorangeone.net`) || Host(`dl.0rng.one`)

View file

@ -120,7 +120,7 @@ resource "cloudflare_record" "theorangeonenet_srv_matrix" {
resource "cloudflare_record" "theorangeonenet_img" { resource "cloudflare_record" "theorangeonenet_img" {
zone_id = cloudflare_zone.theorangeonenet.id zone_id = cloudflare_zone.theorangeonenet.id
name = "img" name = "img"
value = vultr_server.grimes.main_ip value = var.walker_ip
type = "A" type = "A"
ttl = 1 ttl = 1
} }
@ -128,7 +128,7 @@ resource "cloudflare_record" "theorangeonenet_img" {
resource "cloudflare_record" "theorangeonenet_dl" { resource "cloudflare_record" "theorangeonenet_dl" {
zone_id = cloudflare_zone.theorangeonenet.id zone_id = cloudflare_zone.theorangeonenet.id
name = "dl" name = "dl"
value = vultr_server.grimes.main_ip value = var.walker_ip
type = "A" type = "A"
ttl = 1 ttl = 1
} }
@ -136,7 +136,7 @@ resource "cloudflare_record" "theorangeonenet_dl" {
resource "cloudflare_record" "theorangeonenet_bg" { resource "cloudflare_record" "theorangeonenet_bg" {
zone_id = cloudflare_zone.theorangeonenet.id zone_id = cloudflare_zone.theorangeonenet.id
name = "bg" name = "bg"
value = vultr_server.grimes.main_ip value = var.walker_ip
type = "A" type = "A"
ttl = 1 ttl = 1
} }
@ -144,7 +144,7 @@ resource "cloudflare_record" "theorangeonenet_bg" {
resource "cloudflare_record" "theorangeonenet_upload" { resource "cloudflare_record" "theorangeonenet_upload" {
zone_id = cloudflare_zone.theorangeonenet.id zone_id = cloudflare_zone.theorangeonenet.id
name = "upload" name = "upload"
value = vultr_server.grimes.main_ip value = var.walker_ip
type = "A" type = "A"
ttl = 1 ttl = 1
} }