mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-19 04:58:54 +02:00
Add game ports for Valheim, OpenRA, OpenTTD, and Xonotic; update Wings configuration to use different ports instead.
Some checks failed
Build Nix modules (dry-run) / build-modules (push) Failing after 3m18s
Some checks failed
Build Nix modules (dry-run) / build-modules (push) Failing after 3m18s
This commit is contained in:
parent
c80877a9a9
commit
6c25a08515
5 changed files with 81 additions and 4 deletions
|
|
@ -305,6 +305,14 @@ in {
|
|||
minecraft-voice = {
|
||||
address = "[::]:24454/udp";
|
||||
};
|
||||
|
||||
# Game ports: Valheim (UDP 2456-2458), OpenRA (TCP 1234), OpenTTD (TCP 3979), Xonotic (UDP 26000)
|
||||
valheim-2456 = {address = "[::]:2456/udp";};
|
||||
valheim-2457 = {address = "[::]:2457/udp";};
|
||||
valheim-2458 = {address = "[::]:2458/udp";};
|
||||
openra = {address = "[::]:1234";};
|
||||
openttd = {address = "[::]:3979";};
|
||||
xonotic = {address = "[::]:26000/udp";};
|
||||
};
|
||||
log = {
|
||||
level = "INFO";
|
||||
|
|
@ -485,7 +493,7 @@ in {
|
|||
|
||||
wings-pelican.loadBalancer = {
|
||||
servers = [
|
||||
{url = "http://10.1.1.249:8443";}
|
||||
{url = "http://10.1.1.249:8080";}
|
||||
];
|
||||
passHostHeader = true;
|
||||
};
|
||||
|
|
@ -577,6 +585,17 @@ in {
|
|||
service = "minecraft";
|
||||
entryPoints = ["minecraft"];
|
||||
};
|
||||
# TCP game routers
|
||||
openra = {
|
||||
rule = "HostSNI(`*`)"; # catch-all; replace with stricter rule if desired
|
||||
service = "openra";
|
||||
entryPoints = ["openra"];
|
||||
};
|
||||
openttd = {
|
||||
rule = "HostSNI(`*`)";
|
||||
service = "openttd";
|
||||
entryPoints = ["openttd"];
|
||||
};
|
||||
};
|
||||
|
||||
tcp.services = {
|
||||
|
|
@ -618,6 +637,14 @@ in {
|
|||
{address = "10.1.1.244:25565";}
|
||||
];
|
||||
};
|
||||
|
||||
# TCP game services
|
||||
openra.loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:1234";}];
|
||||
};
|
||||
openttd.loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:3979";}];
|
||||
};
|
||||
};
|
||||
|
||||
# UDP routing for TeamSpeak voice
|
||||
|
|
@ -632,6 +659,23 @@ in {
|
|||
entryPoints = ["minecraft-voice"];
|
||||
service = "minecraft-voice";
|
||||
};
|
||||
# UDP routers for game services
|
||||
valheim-2456 = {
|
||||
entryPoints = ["valheim-2456"];
|
||||
service = "valheim-2456";
|
||||
};
|
||||
valheim-2457 = {
|
||||
entryPoints = ["valheim-2457"];
|
||||
service = "valheim-2457";
|
||||
};
|
||||
valheim-2458 = {
|
||||
entryPoints = ["valheim-2458"];
|
||||
service = "valheim-2458";
|
||||
};
|
||||
xonotic = {
|
||||
entryPoints = ["xonotic"];
|
||||
service = "xonotic";
|
||||
};
|
||||
};
|
||||
|
||||
udp.services = {
|
||||
|
|
@ -646,6 +690,20 @@ in {
|
|||
{address = "10.1.1.244:24454";}
|
||||
];
|
||||
};
|
||||
|
||||
# UDP game services (Valheim and Xonotic)
|
||||
"valheim-2456".loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:2456";}];
|
||||
};
|
||||
"valheim-2457".loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:2457";}];
|
||||
};
|
||||
"valheim-2458".loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:2458";}];
|
||||
};
|
||||
xonotic.loadBalancer = {
|
||||
servers = [{address = "10.1.1.244:26000";}];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue