add trilium
This commit is contained in:
parent
24b716ec9d
commit
a048e58d5f
2 changed files with 36 additions and 0 deletions
|
|
@ -7,5 +7,6 @@
|
||||||
./monitoring.nix
|
./monitoring.nix
|
||||||
./pinchflat.nix
|
./pinchflat.nix
|
||||||
./openwebui.nix
|
./openwebui.nix
|
||||||
|
./trilium.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
35
hosts/h001/mods/trilium.nix
Normal file
35
hosts/h001/mods/trilium.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
services.trilium-server = {
|
||||||
|
enable = true;
|
||||||
|
port = 9111;
|
||||||
|
host = "127.0.0.1";
|
||||||
|
dataDir = "/var/lib/trilium";
|
||||||
|
# noAuthentication = true; # keep authentication for now
|
||||||
|
};
|
||||||
|
|
||||||
|
# systemd.tmpfiles.rules = [
|
||||||
|
# "d /var/lib/trilium 0755 trilium trilium -"
|
||||||
|
# ];
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
virtualHosts = {
|
||||||
|
"trilium" = {
|
||||||
|
serverName = "h001.net.joshuabell.xyz";
|
||||||
|
listen = [
|
||||||
|
{
|
||||||
|
port = 9111;
|
||||||
|
addr = "0.0.0.0";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:9111";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue