18 lines
435 B
Nix
18 lines
435 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
imports = [ ./default.nix ];
|
||
|
services.traefik.dynamicConfigOptions = {
|
||
|
http = {
|
||
|
routers.ntfy-sh = {
|
||
|
rule = "Host(`ntfy.xenia.me.uk`)";
|
||
|
entryPoints = [ "http" "https" ];
|
||
|
service = "ntfy-sh-service";
|
||
|
tls = { certResolver = "default"; };
|
||
|
};
|
||
|
services.ntfy-sh-service.loadBalancer.servers =
|
||
|
[{ url = "http://localhost:8800"; }];
|
||
|
};
|
||
|
};
|
||
|
}
|