ugh
This commit is contained in:
parent
4d77ff303b
commit
217879ec9b
1 changed files with 95 additions and 40 deletions
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue