atlas: new name, new domain, new redirects (#31)
This commit is contained in:
parent
3170f824e5
commit
9b120392c2
3 changed files with 54 additions and 47 deletions
|
@ -1,46 +0,0 @@
|
|||
job "11ty-website" {
|
||||
datacenters = ["aperture"]
|
||||
type = "service"
|
||||
|
||||
group "nginx-11ty-website" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = 80
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.nginx-11ty-website.rule=Host(`canary.redbrick.dcu.ie`)",
|
||||
"traefik.http.routers.nginx-11ty-website.entrypoints=web,websecure",
|
||||
"traefik.http.routers.nginx-11ty-website.tls.certresolver=lets-encrypt",
|
||||
]
|
||||
}
|
||||
|
||||
task "webserver" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/redbrick/11ty-website:latest"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 100
|
||||
memory = 500
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
53
jobs/nginx/atlas.hcl
Normal file
53
jobs/nginx/atlas.hcl
Normal file
|
@ -0,0 +1,53 @@
|
|||
job "atlas" {
|
||||
datacenters = ["aperture"]
|
||||
type = "service"
|
||||
|
||||
meta {
|
||||
git-sha = ""
|
||||
}
|
||||
|
||||
group "nginx-atlas" {
|
||||
count = 1
|
||||
|
||||
network {
|
||||
port "http" {
|
||||
to = 80
|
||||
}
|
||||
}
|
||||
|
||||
service {
|
||||
port = "http"
|
||||
|
||||
check {
|
||||
type = "http"
|
||||
path = "/"
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.nginx-atlas.rule=Host(`redbrick.dcu.ie`) || Host(`rb.dcu.ie`)",
|
||||
"traefik.http.routers.nginx-atlas.entrypoints=web,websecure",
|
||||
"traefik.http.routers.nginx-atlas.tls.certresolver=lets-encrypt",
|
||||
"traefik.http.routers.nginx-atlas.middlewares=redirect-user-web",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.regex=https://redbrick\\.dcu\\.ie/~([^/]*)/?([^/].*)?",
|
||||
"traefik.http.middlewares.redirect-user-web.redirectregex.replacement=https://$1.redbrick.dcu.ie/$2",
|
||||
]
|
||||
}
|
||||
|
||||
task "web" {
|
||||
driver = "docker"
|
||||
|
||||
config {
|
||||
image = "ghcr.io/redbrick/atlas:latest"
|
||||
ports = ["http"]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 100
|
||||
memory = 50
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue