nomad/searxng/searxng.nomad

51 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-09-09 23:37:09 +00:00
job "searxng" {
region = "global"
datacenters = ["dc1"]
type = "service"
group "searxng" {
count = 1
network {
port "searx" {}
}
task "searxng" {
driver = "docker"
env {
BIND_ADDRESS = "0.0.0.0:${NOMAD_PORT_searx}"
2023-07-30 04:32:34 +00:00
SEARXNG_BASE_URL = "https://search.elara.ws"
2022-09-09 23:37:09 +00:00
SEARXNG_SECRET = "CHANGE ME"
}
config {
image = "searxng/searxng:latest"
ports = ["searx"]
cap_drop = ["all"]
cap_add = [
"chown",
"setgid",
"setuid",
"dac_override"
]
}
service {
name = "searxng"
port = "searx"
tags = [
"traefik.enable=true",
2023-07-30 04:32:34 +00:00
"traefik.http.routers.searxng.rule=Host(`search.elara.ws`)",
2022-09-09 23:37:09 +00:00
"traefik.http.routers.searxng.tls.certResolver=letsencrypt",
"traefik.http.routers.searxng.middlewares=searxng-headers",
"traefik.http.middlewares.searxng-headers.headers.customrequestheaders.X-Robots-Tag=noindex, noarchive, nofollow"
]
}
}
}
}