caddy: Add support for web services over nebula

This commit is contained in:
SebastianStork 2026-01-10 23:19:49 +01:00
parent b7db8d2fd8
commit 116b4437fe
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
3 changed files with 84 additions and 4 deletions

View file

@ -5,6 +5,9 @@
{
isTailscaleDomain = domain: domain |> lib.hasSuffix ".ts.net";
isPrivateDomain =
domain: domain |> lib.hasSuffix ".splitleaf.de";
subdomainOf = domain: domain |> lib.splitString "." |> lib.head;
rootDomainOf = domain: domain |> lib.splitString "." |> lib.tail |> lib.concatStringsSep ".";