Add nix nextcloud config
This commit is contained in:
parent
9fefa8c380
commit
382fb8be5d
17
server/nextcloud.nix
Normal file
17
server/nextcloud.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [ ./traefik.nix ./fail2ban.nix ];
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
hostName = "cloud.xenia.me.uk";
|
||||
logType = "systemd";
|
||||
};
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
routers.nextcloud = {
|
||||
rule = "Host(`cloud.xenia.me.uk`)";
|
||||
service = "nextcloud-webinterface";
|
||||
tls = { certResolver = "default"; };
|
||||
};
|
||||
services.nextcloud-webinterface.loadBalancer.servers = [{ url = "http://localhost:3000"; }];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue