refactor(nixos): model route protocols explicitly

This commit was merged in pull request #128.
This commit is contained in:
2026-10-05 00:08:36 -04:00
parent a7db0b745c
commit c3a6271582
5 changed files with 49 additions and 29 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" ];