38 lines
812 B
Nix
38 lines
812 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.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";
|
|
# };
|
|
# };
|
|
# };
|
|
# };
|
|
};
|
|
}
|