export ssl cert bundle to process

This commit is contained in:
Chris Dombroski 2024-10-01 20:18:32 -04:00
parent 1d062ba28f
commit 0cbf6be06c

View file

@ -9,14 +9,22 @@
imageFile = pkgs.dockerTools.buildLayeredImage { imageFile = pkgs.dockerTools.buildLayeredImage {
name = "my-zwave-js-ui"; name = "my-zwave-js-ui";
tag = "latest"; tag = "latest";
contents = [ pkgs.cacert pkgs.busybox ]; contents = [
config.Cmd = [ "${inputs.self.packages.${pkgs.stdenv.system}.zwave-js-ui}/bin/zwave-js-ui" ]; pkgs.cacert
pkgs.busybox
];
config = {
Cmd = [ "${inputs.self.packages.${pkgs.stdenv.system}.zwave-js-ui}/bin/zwave-js-ui" ];
Env = [
"STORE_DIR=/usr/src/app/store"
"ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db"
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
];
};
}; };
volumes = [ "zwave-config:/usr/src/app/store" ]; volumes = [ "zwave-config:/usr/src/app/store" ];
environment = { environment = {
TZ = "America/New_York"; TZ = "America/New_York";
STORE_DIR = "/usr/src/app/store";
ZWAVEJS_EXTERNAL_CONFIG = "/usr/src/app/store/.config-db";
}; };
labels = { labels = {
swag = "enable"; swag = "enable";