Add Seafile but fuck this stupid cock sucking bullshit
This commit is contained in:
parent
8061ade3d7
commit
d5b44c8825
|
@ -3,5 +3,6 @@
|
|||
imports = [
|
||||
./nfs
|
||||
./samba
|
||||
./seafile
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue