Move pispace to new wiki setup.
This commit is contained in:
@@ -21,6 +21,7 @@ job "wiki" {
|
||||
network {
|
||||
port "captainslog" { }
|
||||
port "alo" { }
|
||||
port "pispace" { }
|
||||
}
|
||||
|
||||
task "captainslog" {
|
||||
@@ -119,5 +120,53 @@ job "wiki" {
|
||||
memory = 256
|
||||
}
|
||||
}
|
||||
|
||||
task "pispace" {
|
||||
driver = "exec"
|
||||
|
||||
config {
|
||||
command = "/sw/bin/node"
|
||||
args = [
|
||||
"/appdata/wiki/node_modules/tiddlywiki/tiddlywiki.js",
|
||||
"/appdata/wiki/pispace",
|
||||
"--listen",
|
||||
"host=0.0.0.0",
|
||||
"port=${NOMAD_PORT_pispace}",
|
||||
"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 = "pispace"
|
||||
port = "pispace"
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.pispace.rule=Host(`pi.paler.net`)",
|
||||
"traefik.http.routers.pispace.entryPoints=websecure",
|
||||
"traefik.http.routers.pispace.middlewares=authentik@file",
|
||||
]
|
||||
}
|
||||
|
||||
resources {
|
||||
cpu = 500
|
||||
memory = 256
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user