add trilium

This commit is contained in:
Ingolf Wagner 2023-05-15 18:35:35 +02:00
parent 209867b501
commit 635b4f295a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 12 additions and 6 deletions

View file

@ -40,7 +40,7 @@
./syncthing.nix ./syncthing.nix
./kiosk.nix ./kiosk.nix
#./trilium.nix ./trilium.nix
]; ];

View file

@ -5,10 +5,16 @@
dataDir = "/srv/trilium"; dataDir = "/srv/trilium";
instanceName = "chungus"; instanceName = "chungus";
host = "10.23.42.28"; host = "10.23.42.28";
noAuthentication = true; #noAuthentication = true;
#nginx = { nginx = {
# enable = true; enable = true;
# hostName = "trilium.${config.networking.hostName}.private"; hostName = "trilium.${config.networking.hostName}.private";
#}; };
}; };
services.nginx.virtualHosts."${config.services.trilium-server.nginx.hostName}".extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
} }