2024-07-26 22:12:48 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2024-07-12 13:27:08 +02:00
|
|
|
wireguard.elisabeth = {
|
|
|
|
client.via = "elisabeth";
|
2024-07-26 22:12:48 +02:00
|
|
|
firewallRuleForNode.elisabeth.allowedTCPPorts = [ config.services.octoprint.port ];
|
2024-07-12 13:27:08 +02:00
|
|
|
};
|
|
|
|
services.octoprint = {
|
|
|
|
port = 3000;
|
|
|
|
enable = true;
|
2024-07-26 22:12:48 +02:00
|
|
|
plugins = ps: with ps; [ ender3v2tempfix ];
|
2024-07-12 13:27:08 +02:00
|
|
|
extraConfig = {
|
|
|
|
accessControl = {
|
|
|
|
addRemoteUser = true;
|
|
|
|
trustRemoteUser = true;
|
2024-07-13 01:04:40 +02:00
|
|
|
remoteUserHeader = "X-User";
|
2024-07-12 13:27:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|