Seafile fuckup I did this on the wrong server

This commit is contained in:
Jimbo 2025-01-03 15:34:22 -05:00
parent cca62aad4f
commit 33236aedc6
4 changed files with 24 additions and 2 deletions

View file

@ -1,8 +1,9 @@
{ ... }:
{
imports = [
./nextcloud
#./nextcloud
./nfs
./samba
./seafile
];
}

View file

@ -10,7 +10,7 @@
https = true;
config = {
adminuser = "jimbo";
adminpassFile = "/mnt/nextcloud/password.txt";
adminpassFile = "${pkgs.writeText "nextpass" config.secrets.jimboAccPass}";
};
settings = {
trusted_proxies = [ "127.0.0.1" ];

View file

@ -0,0 +1,10 @@
{ config, ... }:
{
services.seafile = {
enable = true;
gc.enable = true;
group = "nfsShare";
adminEmail = "contact@${config.domains.p2}";
initialAdminPassword = config.secrets.jimboAccPass;
};
}

View file

@ -0,0 +1,11 @@
{ lib, config, ... }:
{
services.nginx.virtualHosts."cloud.${config.domains.p2}" = lib.mkIf config.services.icecast.enable {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8082";
proxyWebsockets = true;
};
};
}