feat(baldur): setup crafty-controller completelly.

This commit is contained in:
CronyAkatsuki 2025-05-08 09:53:15 +02:00
parent a016abced0
commit b53b558532
2 changed files with 23 additions and 0 deletions

View File

@ -16,4 +16,26 @@
"/var/lib/crafty-controller/import:/crafty/import"
];
};
networking.firewall = {
allowedTCPPorts = [25500];
allowedUDPPorts = [25500];
};
services.traefik.dynamicConfigOptions.http = {
services.crafty.loadBalancer.servers = [
{
url = "https://localhost:8443";
}
];
routers.crafty = {
rule = "Host(`crafty.cronyakatsuki.xyz`)";
tls = {
certResolver = "porkbun";
};
service = "crafty";
entrypoints = "websecure";
};
};
}

View File

@ -2,6 +2,7 @@
services.traefik = {
enable = true;
staticConfigOptions = {
serversTransport.insecureSkipVerify = true;
log = {level = "DEBUG";};
certificatesResolvers = {
porkbun = {