nixos/services/traefik/nextcloud.nix
Evie Litherland-Smith 0503c681c2 Add nextcloud config (working)
Fix nextcloud and add recommended security features
2023-05-26 10:21:38 +01:00

14 lines
415 B
Nix

{...}: {
imports = [./default.nix];
services.traefik.dynamicConfigOptions.http = {
routers.nextcloud = {
rule = "Host(`cloud.xenia.me.uk`)";
entryPoints = ["http" "https"];
service = "nextcloud-webinterface";
middlewares = ["hsts"];
tls = {certResolver = "default";};
};
services.nextcloud-webinterface.loadBalancer.servers = [{url = "http://localhost:8000";}];
};
}