Add nix nextcloud config

This commit is contained in:
Evie Litherland-Smith 2023-05-16 16:59:22 +01:00
parent 9fefa8c380
commit 382fb8be5d

17
server/nextcloud.nix Normal file
View 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"; }];
};
}