Run hclfmt

This commit is contained in:
Elara 2023-02-12 00:44:44 -08:00
parent f86d86716e
commit a095dfb958

View File

@ -1,53 +1,53 @@
job "site" {
region = "global"
datacenters = ["dc1"]
type = "service"
region = "global"
datacenters = ["dc1"]
type = "service"
group "site" {
count = 2
group "site" {
count = 2
network {
port "nginx" {
to = 80
}
}
network {
port "nginx" {
to = 80
}
}
task "nginx" {
driver = "docker"
task "nginx" {
driver = "docker"
env {
// Hack to force Nomad to re-deploy the service
// instead of ignoring it
COMMIT_SHA = "${DRONE_COMMIT_SHA}"
}
env {
// Hack to force Nomad to re-deploy the service
// instead of ignoring it
COMMIT_SHA = "${DRONE_COMMIT_SHA}"
}
config {
image = "nginx:latest"
ports = ["nginx"]
volumes = ["local/site/public:/usr/share/nginx/html:ro"]
}
config {
image = "nginx:latest"
ports = ["nginx"]
volumes = ["local/site/public:/usr/share/nginx/html:ro"]
}
artifact {
source = "https://api.minio.arsenm.dev/site/site.tar.gz"
destination = "local/site"
}
artifact {
source = "https://api.minio.arsenm.dev/site/site.tar.gz"
destination = "local/site"
}
service {
name = "site"
port = "nginx"
service {
name = "site"
port = "nginx"
tags = [
"traefik.enable=true",
tags = [
"traefik.enable=true",
"traefik.http.middlewares.site-redir.redirectRegex.regex=^https://arsenm\\.dev",
"traefik.http.middlewares.site-redir.redirectRegex.replacement=https://www.arsenm.dev",
"traefik.http.middlewares.site-redir.redirectRegex.permanent=true",
"traefik.http.middlewares.site-redir.redirectRegex.regex=^https://arsenm\\.dev",
"traefik.http.middlewares.site-redir.redirectRegex.replacement=https://www.arsenm.dev",
"traefik.http.middlewares.site-redir.redirectRegex.permanent=true",
"traefik.http.routers.site.rule=Host(`arsenm.dev`) || Host(`www.arsenm.dev`)",
"traefik.http.routers.site.middlewares=site-redir",
"traefik.http.routers.site.tls.certResolver=letsencrypt",
]
}
}
}
"traefik.http.routers.site.rule=Host(`arsenm.dev`) || Host(`www.arsenm.dev`)",
"traefik.http.routers.site.middlewares=site-redir",
"traefik.http.routers.site.tls.certResolver=letsencrypt",
]
}
}
}
}