chore(octoprint): config updates

This commit is contained in:
arcnmx 2024-07-13 12:05:05 -07:00
parent 5508982563
commit 1ead7f237e
2 changed files with 46 additions and 10 deletions

View file

@ -29,7 +29,10 @@ in {
default = {
port = mkAlmostOptionDefault 5000;
protocol = "http";
status.enable = mkAlmostOptionDefault true;
status = {
enable = mkAlmostOptionDefault true;
gatus.client.network = mkAlmostOptionDefault "ip4";
};
};
};
};

View file

@ -17,30 +17,63 @@ in {
{
# TODO: api.key = sops?
server = {
firstRun = false;
onlineCheck.enabled = true;
pluginBlacklist.enabled = true;
# TODO: secretKey = sops?
reverseProxy = {
hostHeader = "X-Forwarded-Host";
schemeHeader = "X-Forwarded-Proto";
trustedDownstream = access.cidrForNetwork.allLan.all;
};
};
webcam = mkIf motion.enable {
# TODO
};
plugins = {
_disabled = [
"softwareupdate"
];
};
temperature = {
profiles = [
{
name = "ABS";
bed = 100;
extruder = 210;
chamber = null;
}
{
name = "PLA";
bed = 60;
extruder = 180;
chamber = null;
}
];
};
serial = {
port = "/dev/ttyUSB0";
baudrate = 115200;
#autoconnect = true;
};
}
(mkIf motion.enable {
webcam = {
# TODO
};
})
(mkIf (!behindVouch) {
accessControl = {
autologinLocal = true;
autologinAs = "guest";
#autologinAs = "guest";
autologinAs = "admin";
localNetworks = access.cidrForNetwork.allLocal.all;
};
})
(mkIf behindVouch {
accessControl = {
trustRemoteUser = true;
addRemoteUsers = true;
remoteUserHeader = "X-Vouch-User";
};
})
];
};