Switch minecraft server to papermc 1.20.4
Add proxy redirect to GeyserMC port at bedrock.xenia.me.uk
This commit is contained in:
parent
92e726c068
commit
f8a6e67179
|
@ -5,7 +5,7 @@
|
||||||
}: {
|
}: {
|
||||||
services.minecraft-server = {
|
services.minecraft-server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.minecraftServers.vanilla-1-20;
|
package = pkgs.papermcServers.papermc-1_20_4;
|
||||||
eula = true;
|
eula = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
declarative = true;
|
declarative = true;
|
||||||
|
@ -27,5 +27,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Caddy forwarding
|
# 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"};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue