Switch minecraft server to papermc 1.20.4

Add proxy redirect to GeyserMC port at bedrock.xenia.me.uk
This commit is contained in:
Evie Litherland-Smith 2024-07-28 10:07:21 +01:00
parent 92e726c068
commit f8a6e67179

View file

@ -5,7 +5,7 @@
}: {
services.minecraft-server = {
enable = true;
package = pkgs.minecraftServers.vanilla-1-20;
package = pkgs.papermcServers.papermc-1_20_4;
eula = true;
openFirewall = true;
declarative = true;
@ -27,5 +27,7 @@
};
# Caddy forwarding
services.caddy.virtualHosts."craft.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.minecraft-server.serverProperties.server-port}";
services.caddy.virtualHosts = {
"craft.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:${toString config.services.minecraft-server.serverProperties.server-port}";
"bedrock.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:19132"};
}