trilium backups enabled
This commit is contained in:
parent
350dca5fb6
commit
e59d1663df
1 changed files with 30 additions and 15 deletions
|
|
@ -5,22 +5,37 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
lib.mkIf config.user.overseer.enable {
|
lib.mkIf config.user.overseer.enable {
|
||||||
services.trilium-server = {
|
services = {
|
||||||
enable = true;
|
restic.backups.notes = {
|
||||||
package = pkgs.trilium-next-server;
|
user = "root";
|
||||||
instanceName = "WanderingCrow";
|
timerConfig = {
|
||||||
port = 8090;
|
OnCalendar = "daily";
|
||||||
};
|
Persistent = true;
|
||||||
|
};
|
||||||
|
paths = [
|
||||||
|
"/var/lib/trilium/backup"
|
||||||
|
];
|
||||||
|
repositoryFile = config.sops.secrets."restic/url".path;
|
||||||
|
passwordFile = config.sops.secrets."restic/key".path;
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx = {
|
trilium-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
package = pkgs.trilium-next-server;
|
||||||
virtualHosts = {
|
instanceName = "WanderingCrow";
|
||||||
"notes.wanderingcrow.net" = {
|
port = 8090;
|
||||||
forceSSL = true;
|
};
|
||||||
useACMEHost = "notes.wanderingcrow.net";
|
|
||||||
locations."/" = {
|
nginx = {
|
||||||
proxyPass = "http://127.0.0.1:8090";
|
enable = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"notes.wanderingcrow.net" = {
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = "notes.wanderingcrow.net";
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:8090";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue