trilium next is where its at

This commit is contained in:
TheWanderingCrow 2025-03-11 14:56:39 -04:00
parent b6a18a7c1c
commit 350dca5fb6
3 changed files with 30 additions and 1 deletions

View file

@ -44,7 +44,7 @@ lib.mkIf config.user.overseer.enable {
"cache.wanderingcrow.net" = {};
"openhab.wanderingcrow.net" = {};
"frigate.wanderingcrow.net" = {};
"wiki.wanderingcrow.net" = {};
"notes.wanderingcrow.net" = {};
};
};
}

View file

@ -8,5 +8,6 @@
./lubelogger.nix
./openhab.nix
./frigate.nix
./trilium.nix
];
}

View file

@ -0,0 +1,28 @@
{
lib,
config,
pkgs,
...
}:
lib.mkIf config.user.overseer.enable {
services.trilium-server = {
enable = true;
package = pkgs.trilium-next-server;
instanceName = "WanderingCrow";
port = 8090;
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"notes.wanderingcrow.net" = {
forceSSL = true;
useACMEHost = "notes.wanderingcrow.net";
locations."/" = {
proxyPass = "http://127.0.0.1:8090";
};
};
};
};
}