diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2024-01-07 16:26:01 +0100 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2024-01-07 16:43:16 +0100 |
commit | 75c31794fd5c654b649e049db706d32148ea1ae1 (patch) | |
tree | 9d3d934e68df5e6aae67d9a15cedf97b13a708d8 /jobs/besiktn.ing | |
parent | 278669edb25a84f197034c130eb372a38110385a (diff) | |
download | garm-75c31794fd5c654b649e049db706d32148ea1ae1.tar.gz |
Add försäkr.ing and besiktn.ing
Diffstat (limited to 'jobs/besiktn.ing')
-rw-r--r-- | jobs/besiktn.ing/besiktn.ing.nomad.hcl | 62 | ||||
-rw-r--r-- | jobs/besiktn.ing/index.html | 20 |
2 files changed, 82 insertions, 0 deletions
diff --git a/jobs/besiktn.ing/besiktn.ing.nomad.hcl b/jobs/besiktn.ing/besiktn.ing.nomad.hcl new file mode 100644 index 0000000..8281b66 --- /dev/null +++ b/jobs/besiktn.ing/besiktn.ing.nomad.hcl @@ -0,0 +1,62 @@ +job "besiktn.ing" { + group "web" { + count = 1 + + network { + port "http" { + to = 80 + } + } + + service { + name = "besiktning" + port = "http" + provider = "nomad" + + tags = [ + "nginx.hostname=.besiktn.ing", + "nginx.certname=besiktn.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/besiktn.ing/index.html") + destination = "local/html/index.html" + } + } + } +} diff --git a/jobs/besiktn.ing/index.html b/jobs/besiktn.ing/index.html new file mode 100644 index 0000000..441c3e9 --- /dev/null +++ b/jobs/besiktn.ing/index.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="sv"> +<head> + <meta charset="UTF-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Besiktn.ing</title> + <style> +body { + text-align: center; + padding-top: 20vh; + font-family: sans-serif; +} + </style> +</head> +<body> + <h1>Besikta biljäveln</h1> + <p>annars får du inte köra fanskapet</p> +</body> +</html> |