diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2024-05-11 21:25:49 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2024-05-11 21:28:46 +0200 |
commit | c2d3ec3c2ab124158e039fddfd22d35c704afd9f (patch) | |
tree | e48e6ecbde72556a4973f6d9ad0132acb72ddc6a /jobs/hövd.ing | |
parent | 2248eaced59e6c89d812bd9fcb7285e6576a193b (diff) | |
download | garm-c2d3ec3c2ab124158e039fddfd22d35c704afd9f.tar.gz |
Replace nginx with traefik
Diffstat (limited to 'jobs/hövd.ing')
-rw-r--r-- | jobs/hövd.ing/hövd.ing.nomad.hcl | 62 | ||||
-rw-r--r-- | jobs/hövd.ing/index.html | 72 |
2 files changed, 0 insertions, 134 deletions
diff --git a/jobs/hövd.ing/hövd.ing.nomad.hcl b/jobs/hövd.ing/hövd.ing.nomad.hcl deleted file mode 100644 index dd06924..0000000 --- a/jobs/hövd.ing/hövd.ing.nomad.hcl +++ /dev/null @@ -1,62 +0,0 @@ -job "hövd.ing" { - group "web" { - count = 1 - - network { - port "http" { - to = 80 - } - } - - service { - name = "hovding" - port = "http" - provider = "nomad" - - tags = [ - "nginx.hostname=.xn--hvd-sna.ing", - "nginx.certname=xn--hvd-sna.ing", - ] - } - - task "web" { - driver = "docker" - - resources { - cpu = 50 - memory = 20 - } - - config { - image = "nginx:1.25-alpine" - ports = ["http"] - - volumes = [ - "local/config:/etc/nginx/conf.d", - "local/html:/var/www/html", - ] - } - - template { - data = <<EOF -server { - listen 80 default_server; - listen [::]:80 default_server; - http2 on; - - root /var/www/html; - location / { - index index.html; - } -} -EOF - destination = "local/config/website.conf" - } - - template { - data = file("jobs/hövd.ing/index.html") - destination = "local/html/index.html" - } - } - } -} diff --git a/jobs/hövd.ing/index.html b/jobs/hövd.ing/index.html deleted file mode 100644 index c0bf5f6..0000000 --- a/jobs/hövd.ing/index.html +++ /dev/null @@ -1,72 +0,0 @@ -<!DOCTYPE html> -<html lang="sv"> -<head> - <meta charset="utf-8" /> - <title>Hövding</title> - <style> - * { - margin: 0; - padding: 0; - box-sizing: border-box; - } - body { - display: flex; - align-items: center; - flex-direction: column; - justify-content: center; - gap: 2em; - min-height: 100vh; - font-family: monospace; - } - span { - position: relative; - } - .invisible { - display: none; - } - img { - max-width: 90vw; - max-height: 80vh; - } - </style> -</head> -<body> - <h1>Se på fan, en Hövding!</h1> - <img src="https://d2q01ftr6ua4w.cloudfront.net/assets/images/8d6f885ed2e20f3cd0ed3db9fb1901da6a2695f0.jpeg"> - - <script> - const el = document.querySelector("h1"); - const text = el.textContent; - el.innerHTML = ""; - const spans = new Array(text.length).fill().map((_, i) => { - const span = document.createElement("span"); - span.innerText = text[i]; - span.classList.add("invisible"); - el.appendChild(span); - return span; - }); - const underscore = document.createElement("span"); - const underscoreInner = document.createElement("span"); - underscoreInner.innerText = "_"; - underscore.appendChild(underscoreInner); - underscore.style.position = "relative"; - underscoreInner.style.position = "absolute"; - el.appendChild(underscore); - let i = 0; - function next() { - spans[i].classList.remove("invisible"); - - i++; - if (i >= spans.length) { - setTimeout(removeCursor, 200); - } else { - setTimeout(next, Math.ceil(Math.random() * 200)); - } - } - next(); - function removeCursor() { - underscore.classList.add("invisible"); - } - </script> -</body> -</html> |