dotfiles/hosts/h001/mods/trilium.nix
RingOfStorms (Joshua Bell) 72e0759fa4 it works!?
2025-10-05 18:31:37 -05:00

32 lines
702 B
Nix

{
...
}:
{
config = {
services.trilium-server = {
enable = true;
port = 9111;
host = "127.0.0.1";
dataDir = "/var/lib/trilium";
noAuthentication = true;
instanceName = "joshuabell";
};
systemd.services.trilium-server.environment = {
TRILIUM_NO_UPLOAD_LIMIT = "true";
};
services.oauth2-proxy.nginx.virtualHosts."notes.joshuabell.xyz" = {
allowed_groups = [ "notes" ];
};
services.nginx.virtualHosts."notes.joshuabell.xyz" = {
locations = {
"/" = {
proxyWebsockets = true;
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:9111";
};
};
};
};
}