Add Seafile but fuck this stupid cock sucking bullshit

This commit is contained in:
Jimbo 2025-01-03 18:32:00 -05:00
parent 8061ade3d7
commit d5b44c8825
3 changed files with 30 additions and 0 deletions

View file

@ -3,5 +3,6 @@
imports = [ imports = [
./nfs ./nfs
./samba ./samba
./seafile
]; ];
} }

View file

@ -0,0 +1,12 @@
{ config, ... }:
{
imports = [ ./nginx ];
services.seafile = {
enable = config.system.server.enable;
adminEmail = "jimbo@${config.domains.p2}";
initialAdminPassword = config.secrets.mainAccPass;
ccnetSettings.General.SERVICE_URL = "https://sync.${config.domains.p2}";
seafileSettings.fileserver.host = "unix:/run/seafile/server.sock";
};
}

View file

@ -0,0 +1,17 @@
{ lib, config, ... }:
{
services.nginx.virtualHosts."sync.${config.domains.p2}" = lib.mkIf config.services.seafile.enable {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
proxyPass = "http://unix:/run/seahub/gunicorn.sock";
proxyWebsockets = true;
};
"/seafhttp" = {
proxyPass = "http://unix:/run/seafile/server.sock";
proxyWebsockets = true;
};
};
};
}