add config file

This commit is contained in:
XenGi 2026-11-25 11:41:44 +01:00
commit d269e76155
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg

View file

@ -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";