mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
30 lines
614 B
Nix
30 lines
614 B
Nix
{ config, lib, pkgs, user, ... }:
|
|
services.moonraker = {
|
|
user = "${user}";
|
|
enable = true;
|
|
address = "0.0.0.0";
|
|
settings = {
|
|
octoprint_compat = { };
|
|
history = { };
|
|
authorization = {
|
|
force_logins = true;
|
|
cors_domains = [
|
|
"*.local"
|
|
"*.lan"
|
|
"*://app.fluidd.xyz"
|
|
"*://my.mainsail.xyz"
|
|
];
|
|
trusted_clients = [
|
|
"10.0.0.0/8"
|
|
"127.0.0.0/8"
|
|
"169.254.0.0/16"
|
|
"172.16.0.0/12"
|
|
"192.168.1.0/24"
|
|
"FE80::/10"
|
|
"::1/128"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|