feat(send): install
This commit is contained in:
parent
cea5fc1df7
commit
143f1dafac
2 changed files with 29 additions and 0 deletions
28
modules/nixos/features/send.nix
Normal file
28
modules/nixos/features/send.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
let
|
||||
port = 5020;
|
||||
certloc = "/var/lib/acme/fi33.buzz";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
send = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
baseUrl = "https://send.fi33.buzz";
|
||||
environment = {
|
||||
DEFAULT_EXPIRE_SECONDS = 360;
|
||||
EXPIRE_TIMES_SECONDS = "360";
|
||||
DOWNLOAD_COUNTS = "1";
|
||||
MAX_DOWNLOADS = 1;
|
||||
MAX_EXPIRE_SECONDS = 1024;
|
||||
MAX_FILE_SIZE = 134217728;
|
||||
};
|
||||
};
|
||||
|
||||
caddy.virtualHosts."send.fi33.buzz".extraConfig = ''
|
||||
reverse_proxy localhost:${toString port}
|
||||
tls ${certloc}/cert.pem ${certloc}/key.pem {
|
||||
protocols tls1.3
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue