refactor(nixos): model route protocols explicitly

This commit is contained in:
2026-10-05 00:08:36 -04:00
parent a7db0b745c
commit 077e56e9ea
4 changed files with 45 additions and 24 deletions

View File

@@ -78,7 +78,8 @@
enable = true;
route = {
domain = "valheim.alexion.dev";
udp.ports = [
protocol = "udp";
ports = [
config.guests.valheim.port
(config.guests.valheim.port + 1)
];
@@ -101,7 +102,8 @@
enable = true;
route = {
domain = "palworld.alexion.dev";
udp.ports = [ config.guests.palworld.port ];
protocol = "udp";
ports = [ config.guests.palworld.port ];
};
};
};
@@ -116,6 +118,7 @@
enable = true;
route = {
domain = "budget.alexion.dev";
protocol = "https";
port = 5006;
};
};
@@ -132,6 +135,7 @@
enable = true;
route = {
domain = "music.alexion.dev";
protocol = "https";
port = 4533;
};
};
@@ -152,7 +156,8 @@
enable = true;
route = {
domain = "home";
http.port = 8082;
protocol = "http";
port = 8082;
};
};
};
@@ -167,6 +172,7 @@
enable = true;
route = {
domain = "files.alexion.dev";
protocol = "https";
port = 3923;
};
trustedSources = [ "${registry.address.${config.networking.hostName}."reverse-proxy"}/32" ];