infrastructure/hosts/kinda.sus.lol/services/transfer-sh.nix

20 lines
578 B
Nix
Raw Normal View History

2024-04-11 20:13:33 +00:00
{ config, pkgs, lib, ... }:
2024-01-24 20:04:41 +00:00
{
2024-04-11 15:09:18 +00:00
networking.firewall.allowedTCPPorts = [ ];
2024-01-24 20:04:41 +00:00
services.transfer-sh = {
enable = true;
2024-04-11 15:09:18 +00:00
settings = {
LISTENER = "192.168.99.201:6080";
HTTP_AUTH_HTPASSWD = "/run/secrets/services/nginx/transfersh.htpasswd";
TEMP_PATH = "/mnt/data/transfer-sh/temp";
BASEDIR = "/mnt/data/transfer-sh/store";
EMAIL_CONTACT = "abuse@lewd.wtf";
PURGE_DAYS = "90";
};
2024-01-24 20:04:41 +00:00
};
2024-04-11 20:13:33 +00:00
systemd.services.transfer-sh.serviceConfig.ReadWritePaths = lib.mkForce [
"/mnt/data/transfer-sh/temp"
"/mnt/data/transfer-sh/store"
];
2024-01-24 20:04:41 +00:00
}