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