mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(octoprint): config updates
This commit is contained in:
parent
5508982563
commit
1ead7f237e
2 changed files with 46 additions and 10 deletions
|
|
@ -29,7 +29,10 @@ in {
|
||||||
default = {
|
default = {
|
||||||
port = mkAlmostOptionDefault 5000;
|
port = mkAlmostOptionDefault 5000;
|
||||||
protocol = "http";
|
protocol = "http";
|
||||||
status.enable = mkAlmostOptionDefault true;
|
status = {
|
||||||
|
enable = mkAlmostOptionDefault true;
|
||||||
|
gatus.client.network = mkAlmostOptionDefault "ip4";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,30 +17,63 @@ in {
|
||||||
{
|
{
|
||||||
# TODO: api.key = sops?
|
# TODO: api.key = sops?
|
||||||
server = {
|
server = {
|
||||||
|
firstRun = false;
|
||||||
|
onlineCheck.enabled = true;
|
||||||
|
pluginBlacklist.enabled = true;
|
||||||
|
|
||||||
# TODO: secretKey = sops?
|
# TODO: secretKey = sops?
|
||||||
reverseProxy = {
|
reverseProxy = {
|
||||||
|
hostHeader = "X-Forwarded-Host";
|
||||||
schemeHeader = "X-Forwarded-Proto";
|
schemeHeader = "X-Forwarded-Proto";
|
||||||
trustedDownstream = access.cidrForNetwork.allLan.all;
|
trustedDownstream = access.cidrForNetwork.allLan.all;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
webcam = mkIf motion.enable {
|
|
||||||
# TODO
|
|
||||||
};
|
|
||||||
plugins = {
|
plugins = {
|
||||||
_disabled = [
|
_disabled = [
|
||||||
"softwareupdate"
|
"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) {
|
(mkIf (!behindVouch) {
|
||||||
|
accessControl = {
|
||||||
autologinLocal = true;
|
autologinLocal = true;
|
||||||
autologinAs = "guest";
|
#autologinAs = "guest";
|
||||||
|
autologinAs = "admin";
|
||||||
localNetworks = access.cidrForNetwork.allLocal.all;
|
localNetworks = access.cidrForNetwork.allLocal.all;
|
||||||
|
};
|
||||||
})
|
})
|
||||||
(mkIf behindVouch {
|
(mkIf behindVouch {
|
||||||
|
accessControl = {
|
||||||
trustRemoteUser = true;
|
trustRemoteUser = true;
|
||||||
addRemoteUsers = true;
|
addRemoteUsers = true;
|
||||||
remoteUserHeader = "X-Vouch-User";
|
remoteUserHeader = "X-Vouch-User";
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue