fmt
This commit is contained in:
parent
5b30e6eb0c
commit
98ce5b1387
1 changed files with 37 additions and 36 deletions
|
|
@ -10,47 +10,48 @@ in
|
|||
];
|
||||
|
||||
environment.etc."prusa-connect/config.yaml".source =
|
||||
(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...;
|
||||
#};
|
||||
(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";
|
||||
};
|
||||
};
|
||||
};
|
||||
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";
|
||||
environment = {};
|
||||
environment = { };
|
||||
ports = [ "127.0.0.1:8080:8080" ];
|
||||
#extraOptions = [ "--network=host" ];
|
||||
pull = "newer";
|
||||
|
|
|
|||
Loading…
Reference in a new issue