Added transfer-sh and basic caddy config and lapserv host config.
This commit is contained in:
parent
58dcc86ca8
commit
cc42ce672d
8 changed files with 95 additions and 3 deletions
18
system/server/transfer-sh.nix
Normal file
18
system/server/transfer-sh.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{config, ...}: {
|
||||
services.transfer-sh = {
|
||||
enable = config.niksos.server;
|
||||
settings = {
|
||||
PURGE_DAYS = 7;
|
||||
MAX_UPLOAD_SIZE = 4 * 1000 * 1000; # 2gb
|
||||
# CORS_DOMAINS = "transfer.jsw.tf"; #FIXME: open it to the world wide web.
|
||||
BASEDIR = "/var/lib/transfer.sh";
|
||||
LISTENER = ":9000";
|
||||
};
|
||||
};
|
||||
systemd.services.transfer-sh.serviceConfig = {
|
||||
StateDirectory = "transfer.sh";
|
||||
StateDirectoryMode = "0750";
|
||||
};
|
||||
|
||||
#TODO: caddy
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue