feat(baldur): setup crafty-controller completelly.
This commit is contained in:
parent
a016abced0
commit
b53b558532
2 changed files with 23 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
services.traefik = {
|
||||
enable = true;
|
||||
staticConfigOptions = {
|
||||
serversTransport.insecureSkipVerify = true;
|
||||
log = {level = "DEBUG";};
|
||||
certificatesResolvers = {
|
||||
porkbun = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue