add config file
This commit is contained in:
parent
3934897166
commit
d269e76155
1 changed files with 38 additions and 0 deletions
|
|
@ -9,6 +9,44 @@ in
|
|||
../../services/podman.nix
|
||||
];
|
||||
|
||||
environment.etc."prusa-connect/config.yaml".text =
|
||||
(pkgs.formats.yaml {}).generate "config.yaml" {
|
||||
core = {
|
||||
site = "cccb";
|
||||
api = {
|
||||
addr = ":8080";
|
||||
allowed_origins = [
|
||||
"https://prusa-connect.club.berlin.ccc.de"
|
||||
];
|
||||
#tls = {
|
||||
# certificate = config.acme...;
|
||||
# key = config.acme...;
|
||||
#};
|
||||
};
|
||||
trusted_proxies = [
|
||||
"10.88.0.1"
|
||||
"127.0.0.1"
|
||||
];
|
||||
log = {
|
||||
level = "info";
|
||||
format = "text";
|
||||
};
|
||||
frontend = {
|
||||
enabled = true;
|
||||
title = "CCCB Prusa Connect Local";
|
||||
printer_address = "https://172.23.42.30";
|
||||
};
|
||||
discovery.host_records = "system";
|
||||
};
|
||||
persistence.type = "sqlite";
|
||||
resources = {
|
||||
storage.local = {
|
||||
type = "filesystem";
|
||||
config.root = "/var/lib/prusa-connect/storage";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers.prusa-connect = {
|
||||
labels."io.containers.autoupdate" = "registry";
|
||||
image = "ghcr.io/prusa3d/prusa-connect:0.1.0-beta.2";
|
||||
|
|
|
|||
Loading…
Reference in a new issue