mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-25 09:42:24 +00:00
Compare commits
No commits in common. "05deb5b97932ec9fdf3e593296a53d3d8582a3bc" and "25975da0c197cb265fbdd0c0def28b37ad0b6910" have entirely different histories.
05deb5b979
...
25975da0c1
@ -80,7 +80,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# Allows Nextcloud to trust Cloudflare IPs
|
# Allows Nextcloud to trust Cloudflare IPs
|
||||||
services.nextcloud.settings.trusted_proxies = cloudflareIpRanges;
|
services.nextcloud.extraOptions.trusted_proxies = cloudflareIpRanges;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
adminpassFile = config.secrets.nextcloud.dest;
|
adminpassFile = config.secrets.nextcloud.dest;
|
||||||
dbtype = "mysql";
|
dbtype = "mysql";
|
||||||
};
|
};
|
||||||
settings = {
|
extraOptions = {
|
||||||
default_phone_region = "US";
|
default_phone_region = "US";
|
||||||
# Allow access when hitting either of these hosts or IPs
|
# Allow access when hitting either of these hosts or IPs
|
||||||
trusted_domains = [ config.hostnames.content ];
|
trusted_domains = [ config.hostnames.content ];
|
||||||
|
@ -48,12 +48,23 @@
|
|||||||
before = [ "paperless.service" ];
|
before = [ "paperless.service" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Fix permissions on a regular schedule
|
||||||
|
systemd.timers.paperless-permissions = {
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "*-*-* *:0/5"; # Every 5 minutes
|
||||||
|
Unit = "paperless-permissions.service";
|
||||||
|
};
|
||||||
|
wantedBy = [ "timers.target" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Fix paperless shared permissions
|
# Fix paperless shared permissions
|
||||||
systemd.services.paperless-web.serviceConfig.UMask = lib.mkForce "0026";
|
systemd.services.paperless-permissions = {
|
||||||
systemd.services.paperless-scheduler.serviceConfig.UMask =
|
description = "Allow group access to paperless files";
|
||||||
lib.mkForce "0026";
|
serviceConfig = { Type = "oneshot"; };
|
||||||
systemd.services.paperless-task-queue.serviceConfig.UMask =
|
script = ''
|
||||||
lib.mkForce "0026";
|
find ${config.services.paperless.mediaDir} -type f -exec chmod 640 -- {} +
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user