Watch
1
0
Fork
You've already forked fi-nix-infra
0
forked from fi/nix-infra
This commit is contained in:
fi 2026-11-20 13:24:50 +01:00
commit 217879ec9b
Signed by: fi
SSH key fingerprint: SHA256:dgX1HRsK+8F1OzYvKfv1VLhMJac/Iv/rsjixuV94+dA

View file

@ -2,7 +2,8 @@
{
services.pterodactyl-panel = {
enable = true;
hostName = "pterodactyl.vs.grzb.de";
package = pkgs.pterodactyl-panel_2;
hostName = "gameserver.nekover.se";
appKeyFile = "/run/secrets/appkey";
hashIdsSaltFile = "/run/secrets/hashids-salt";
initialAdmin = {
@ -18,15 +19,27 @@
passwordFile = "/run/secrets/mail-password";
from.address = "pterodactyl@nekover.se";
};
nginx = {
forceSSL = true;
enableACME = true;
extraConfig = ''
listen 0.0.0.0:8443 http2 ssl proxy_protocol;
set_real_ip_from 10.202.41.100; # IPv4 from web-public-2
set_real_ip_from 10.203.10.3; # IPv6 from valkyrie
real_ip_header proxy_protocol;
'';
};
};
services.pterodactyl-wings = {
enable = false;
tokenFile = "/run/secrets/token.secret";
enable = true;
openFirewall = true;
tokenFile = "/run/secrets/token";
settings = {
remote = "http://pterodactyl.vs.grzb.de";
uuid = "af2b7256-d712-47f4-aa02-6341b9cf30db";
token_id = "1zgQbvAuWe7vo3y8";
uuid = "a345cf7e-bb7a-4b65-bce8-27d436ec3658";
token_id = "NCjstOQZX6BOmXP1";
api.port = 4443;
};
};
@ -50,4 +63,9 @@
owner = config.services.pterodactyl-panel.user;
group = config.services.pterodactyl-panel.group;
};
sops.secrets."token" = {
mode = "0440";
owner = "root";
group = "root";
};
}