Added Caddyfile configuration + Searxng job
This commit is contained in:
parent
c4246661ef
commit
255a0e0e61
4 changed files with 52 additions and 0 deletions
11
apps/caddy/Caddyfile
Normal file
11
apps/caddy/Caddyfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
email zuma@deuxfleurs.fr
|
||||
}
|
||||
|
||||
chokbar.bzh {
|
||||
respond "Kenavo !"
|
||||
}
|
||||
|
||||
search.chokbar.bzh {
|
||||
reverse_proxy searxng.service.consul:8080
|
||||
}
|
||||
|
|
@ -16,6 +16,9 @@ job "caddy" {
|
|||
image = "caddy"
|
||||
network_mode = "host"
|
||||
ports = [ "http_port", "https_port" ]
|
||||
volumes = [
|
||||
"secrets/Caddyfile:/etc/caddy/Caddyfile"
|
||||
]
|
||||
}
|
||||
|
||||
resources {
|
||||
|
|
@ -23,6 +26,12 @@ job "caddy" {
|
|||
memory = 400
|
||||
}
|
||||
|
||||
template {
|
||||
data = file("./Caddyfile")
|
||||
destination = "secrets/Caddyfile"
|
||||
perms = 400
|
||||
}
|
||||
|
||||
service {
|
||||
name = "caddy-http"
|
||||
port = "http_port"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue