forked from fi/nix-infra
pterodactyl
This commit is contained in:
parent
2029ebd5be
commit
4d77ff303b
1 changed files with 100 additions and 3 deletions
|
|
@ -1,6 +1,53 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.pterodactyl-wings = {
|
||||
services.pterodactyl-panel = {
|
||||
enable = true;
|
||||
hostName = "pterodactyl.vs.grzb.de";
|
||||
appKeyFile = "/run/secrets/appkey";
|
||||
hashIdsSaltFile = "/run/secrets/hashids-salt";
|
||||
initialAdmin = {
|
||||
email = "admin@nekover.se";
|
||||
passwordFile = "/run/secrets/initial-admin-password";
|
||||
};
|
||||
mail = {
|
||||
driver = "smtp";
|
||||
host = "mail-1.grzb.de";
|
||||
port = 465;
|
||||
encryption = "tls";
|
||||
user = "pterodactyl@nekover.se";
|
||||
passwordFile = "/run/secrets/mail-password";
|
||||
from.address = "pterodactyl@nekover.se";
|
||||
};
|
||||
};
|
||||
|
||||
services.pterodactyl-wings = {
|
||||
enable = false;
|
||||
tokenFile = "/run/secrets/token.secret";
|
||||
settings = {
|
||||
remote = "http://pterodactyl.vs.grzb.de";
|
||||
uuid = "af2b7256-d712-47f4-aa02-6341b9cf30db";
|
||||
token_id = "1zgQbvAuWe7vo3y8";
|
||||
};
|
||||
};
|
||||
|
||||
sops.secrets."appkey" = {
|
||||
mode = "0440";
|
||||
owner = config.services.pterodactyl-panel.user;
|
||||
group = config.services.pterodactyl-panel.group;
|
||||
};
|
||||
sops.secrets."hashids-salt" = {
|
||||
mode = "0440";
|
||||
owner = config.services.pterodactyl-panel.user;
|
||||
group = config.services.pterodactyl-panel.group;
|
||||
};
|
||||
sops.secrets."initial-admin-password" = {
|
||||
mode = "0440";
|
||||
owner = config.services.pterodactyl-panel.user;
|
||||
group = config.services.pterodactyl-panel.group;
|
||||
};
|
||||
sops.secrets."mail-password" = {
|
||||
mode = "0440";
|
||||
owner = config.services.pterodactyl-panel.user;
|
||||
group = config.services.pterodactyl-panel.group;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue