Move pispace to new wiki setup.

This commit is contained in:
2025-04-17 11:01:42 +01:00
parent cd1f38229a
commit 27787f3a17
3 changed files with 49 additions and 151 deletions

View File

@@ -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
}
}
}
}