init shiori

Signed-off-by: cy <cy@cy7.sh>
This commit is contained in:
cy 2025-01-27 13:04:53 -05:00
parent cad577b193
commit 3351dcc6aa
Signed by: cy
SSH key fingerprint: SHA256:o/geVWV4om1QhUSkKvDQeW/eAihwnjyXkqMwrVdbuts
3 changed files with 20 additions and 0 deletions

View file

@ -27,6 +27,7 @@
./forgejo.nix
./garage.nix
./tailscale.nix
./shiori.nix
];
sops.age.keyFile = "/root/.config/sops/age/keys.txt";

View file

@ -11,12 +11,17 @@
ensureDatabases = [
"hedgedoc"
"atticd"
"shiori"
];
ensureUsers = [
{
name = "atticd";
ensureDBOwnership = true;
}
{
name = "shiori";
ensureDBOwnership = true;
}
];
};
services.postgresqlBackup = {

14
hosts/chunk/shiori.nix Normal file
View file

@ -0,0 +1,14 @@
{...}:
{
services.shiori = {
enable = true;
address = "127.0.0.1";
port = 8091;
databaseUrl = "postgres:///shiori?host=/run/postgresql";
};
services.caddy.virtualHosts."link.cy7.sh".extraConfig = ''
import common
reverse_proxy localhost:8091
'';
}