playit.gg: init
This commit is contained in:
parent
0ae65af2a3
commit
09c5f8e6a8
6 changed files with 119 additions and 11 deletions
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
imports = [
|
||||
./minecraft-server.nix
|
||||
./playit.nix
|
||||
./restic.nix
|
||||
./sops.nix
|
||||
./velocity.nix
|
||||
|
|
|
|||
16
modules/nixos/services/gameserver/playit.nix
Normal file
16
modules/nixos/services/gameserver/playit.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ inputs, config, ... }:
|
||||
|
||||
{
|
||||
imports = [ inputs.playit.nixosModules.default ];
|
||||
nix.settings = {
|
||||
trusted-substituters = [ "https://playit-nixos-module.cachix.org" ];
|
||||
trusted-public-keys = [ "playit-nixos-module.cachix.org-1:22hBXWXBbd/7o1cOnh+p0hpFUVk9lPdRLX3p5YSfRz4=" ];
|
||||
};
|
||||
|
||||
sops.secrets."playit/playit.toml" = {};
|
||||
|
||||
services.playit = {
|
||||
enable = true;
|
||||
secretPath = config.sops.secrets."playit/playit.toml".path;
|
||||
};
|
||||
}
|
||||
|
|
@ -11,11 +11,6 @@
|
|||
mode = "440";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 10000 ];
|
||||
allowedUDPPorts = [ 19132 ]; # for geyser
|
||||
};
|
||||
|
||||
users = {
|
||||
users.velocity = {
|
||||
group = "velocity";
|
||||
|
|
@ -27,7 +22,7 @@
|
|||
environment.etc."velocity/velocity.toml".source = pkgs.writers.writeTOML "velocity.toml" {
|
||||
config-version = "2.7";
|
||||
|
||||
bind = "0.0.0.0:10000";
|
||||
bind = "127.0.0.1:10000";
|
||||
|
||||
motd = "if you see this the server is not working";
|
||||
show-max-players = 2147483647;
|
||||
|
|
@ -60,8 +55,9 @@
|
|||
};
|
||||
|
||||
forced-hosts = {
|
||||
"dj2.mc.wo2wz.fyi" = [ "divine-journey-2" ];
|
||||
"countries.mc.wo2wz.fyi" = [ "countries" ];
|
||||
"entire-identity.gl.at.ply.gg" = [ "divine-journey-2" ];
|
||||
"sample-moments.gl.at.ply.gg" = [ "countries" ];
|
||||
"paris-character.gl.at.ply.gg" = [ "countries" ];
|
||||
};
|
||||
|
||||
advanced = {
|
||||
|
|
@ -71,7 +67,7 @@
|
|||
connection-timeout = 5000;
|
||||
read-timeout = 30000;
|
||||
|
||||
haproxy-protocol = false;
|
||||
haproxy-protocol = true;
|
||||
tcp-fast-open = true;
|
||||
|
||||
bungee-plugin-message-channel = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue