Files
server/nix/modules/default/lib.nix
2025-12-25 07:11:20 +01:00

15 lines
228 B
Nix

{
mkEndpoint = domain: port: ssl: {
host = domain;
localPort = port;
useSsl = ssl;
publicPort =
if ssl then
443
else if domain == "localhost" then
port
else
80;
};
}