init shiori
Signed-off-by: cy <cy@cy7.sh>
This commit is contained in:
parent
cad577b193
commit
3351dcc6aa
3 changed files with 20 additions and 0 deletions
|
@ -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";
|
||||||
|
|
|
@ -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
14
hosts/chunk/shiori.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue