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 ./forgejo.nix
./garage.nix ./garage.nix
./tailscale.nix ./tailscale.nix
./shiori.nix
]; ];
sops.age.keyFile = "/root/.config/sops/age/keys.txt"; sops.age.keyFile = "/root/.config/sops/age/keys.txt";

View file

@ -11,12 +11,17 @@
ensureDatabases = [ ensureDatabases = [
"hedgedoc" "hedgedoc"
"atticd" "atticd"
"shiori"
]; ];
ensureUsers = [ ensureUsers = [
{ {
name = "atticd"; name = "atticd";
ensureDBOwnership = true; ensureDBOwnership = true;
} }
{
name = "shiori";
ensureDBOwnership = true;
}
]; ];
}; };
services.postgresqlBackup = { 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
'';
}