2023-10-21 17:55:11 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./default.nix ];
|
2023-05-26 08:52:46 +01:00
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
|
|
routers.nextcloud = {
|
|
|
|
rule = "Host(`cloud.xenia.me.uk`)";
|
2023-10-21 17:55:11 +01:00
|
|
|
entryPoints = [ "http" "https" ];
|
2023-05-26 08:52:46 +01:00
|
|
|
service = "nextcloud-webinterface";
|
2023-10-21 17:55:11 +01:00
|
|
|
middlewares = [ "hsts" ];
|
|
|
|
tls = { certResolver = "default"; };
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
2023-10-21 17:55:11 +01:00
|
|
|
services.nextcloud-webinterface.loadBalancer.servers =
|
|
|
|
[{ url = "http://localhost:8000"; }];
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
|
|
|
}
|