Config for alo wiki.
This commit is contained in:
@@ -19,7 +19,8 @@ job "wiki" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "http" { }
|
port "captainslog" { }
|
||||||
|
port "alo" { }
|
||||||
}
|
}
|
||||||
|
|
||||||
task "captainslog" {
|
task "captainslog" {
|
||||||
@@ -32,7 +33,7 @@ job "wiki" {
|
|||||||
"/appdata/petruwiki/captainslog",
|
"/appdata/petruwiki/captainslog",
|
||||||
"--listen",
|
"--listen",
|
||||||
"host=0.0.0.0",
|
"host=0.0.0.0",
|
||||||
"port=${NOMAD_PORT_http}",
|
"port=${NOMAD_PORT_captainslog}",
|
||||||
"authenticated-user-header=X-authentik-username",
|
"authenticated-user-header=X-authentik-username",
|
||||||
"readers=ppetru",
|
"readers=ppetru",
|
||||||
"writers=ppetru",
|
"writers=ppetru",
|
||||||
@@ -57,7 +58,7 @@ job "wiki" {
|
|||||||
|
|
||||||
service {
|
service {
|
||||||
name = "captainslog"
|
name = "captainslog"
|
||||||
port = "http"
|
port = "captainslog"
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.captainslog.entryPoints=websecure",
|
"traefik.http.routers.captainslog.entryPoints=websecure",
|
||||||
@@ -70,5 +71,52 @@ job "wiki" {
|
|||||||
memory = 256
|
memory = 256
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task "alo" {
|
||||||
|
driver = "exec"
|
||||||
|
|
||||||
|
config {
|
||||||
|
command = "/sw/bin/node"
|
||||||
|
args = [
|
||||||
|
"/appdata/petruwiki/node_modules/tiddlywiki/tiddlywiki.js",
|
||||||
|
"/appdata/petruwiki/alo",
|
||||||
|
"--listen",
|
||||||
|
"host=0.0.0.0",
|
||||||
|
"port=${NOMAD_PORT_alo}",
|
||||||
|
"authenticated-user-header=X-authentik-username",
|
||||||
|
"readers=ppetru,ines",
|
||||||
|
"writers=ppetru,ines",
|
||||||
|
"admin=ppetru",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
volume_mount {
|
||||||
|
volume = "appdata"
|
||||||
|
destination = "/appdata"
|
||||||
|
}
|
||||||
|
volume_mount {
|
||||||
|
volume = "nix-store"
|
||||||
|
destination = "/nix/store"
|
||||||
|
}
|
||||||
|
volume_mount {
|
||||||
|
volume = "sw"
|
||||||
|
destination = "/sw"
|
||||||
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
name = "alowiki"
|
||||||
|
port = "alo"
|
||||||
|
tags = [
|
||||||
|
"traefik.enable=true",
|
||||||
|
"traefik.http.routers.alowiki.entryPoints=websecure",
|
||||||
|
"traefik.http.routers.alowiki.middlewares=authentik@file",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 500
|
||||||
|
memory = 256
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user