forked from poz/niksos
not yet
This commit is contained in:
parent
adf36e7325
commit
44e57a2de6
2 changed files with 0 additions and 46 deletions
|
@ -4,6 +4,5 @@ _: {
|
|||
./configuration.nix
|
||||
./grafana.nix
|
||||
./hardware-configuration.nix
|
||||
./seafile.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services.seafile = {
|
||||
enable = true;
|
||||
adminEmail = "jacekpoz@cock.li";
|
||||
initialAdminPassword = "";
|
||||
ccnetSettings.General.SERVICE_URL = "https://f.jacekpoz.pl";
|
||||
seafileSettings = {
|
||||
fileserver = {
|
||||
host = "0.0.0.0";
|
||||
port = 8082;
|
||||
max_download_dir_size = 10000;
|
||||
};
|
||||
general.enable_syslog = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.seafileGC = {
|
||||
startAt = "*-*-* 04:00:00";
|
||||
script = ''
|
||||
echo Stopping seafile server
|
||||
systemctl stop seahub.service
|
||||
systemctl stop seaf-server.service
|
||||
|
||||
echo Server stopped, starting GC
|
||||
${pkgs.seafile-server}/bin/seafserv-gc -F /etc/seafile/ -d /var/lib/seafile/data/ -c /var/lib/seafile/data/
|
||||
|
||||
echo GC completed, starting server
|
||||
systemctl start seaf-server.service
|
||||
systemctl start seahub.service
|
||||
echo Server started
|
||||
'';
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts."f.jacekpoz.pl".extraConfig = ''
|
||||
reverse_proxy * localhost:8082
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue