Seafile minimal config working, now modularise and configure.
This commit is contained in:
parent
c3bc0cc509
commit
104a592b11
4 changed files with 48 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{lib, ...}: {
|
||||
imports = [./caddy.nix ./transfer-sh.nix];
|
||||
imports = [./caddy.nix ./transfer-sh.nix ./seafile.nix];
|
||||
options.niksos.server = lib.mkEnableOption "server servcies (such as caddy)."; #TODO: per service option.
|
||||
}
|
||||
|
|
|
|||
29
system/server/seafile.nix
Normal file
29
system/server/seafile.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{inputs, pkgs, ...}: {
|
||||
services.seafile = {
|
||||
enable = true;
|
||||
seahubPackage = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.seahub;
|
||||
|
||||
adminEmail = "jurnwubben@gmail.com";
|
||||
initialAdminPassword = "test";
|
||||
|
||||
ccnetSettings.General.SERVICE_URL = "https://files.jsw.tf";
|
||||
|
||||
seafileSettings = {
|
||||
fileserver = {
|
||||
host = "unix:/run/seafile/server.sock";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."files.jsw.tf" = {
|
||||
# serverAliases = ["www.share.jsw.tf"];
|
||||
extraConfig = ''
|
||||
handle_path /seafhttp/* {
|
||||
reverse_proxy * unix//run/seafile/server.sock
|
||||
}
|
||||
handle_path /* {
|
||||
reverse_proxy * unix//run/seahub/gunicorn.sock
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue