From c73204ce61c39471ecd18aeaccb6682ecb8b941e Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 8 Nov 2024 10:56:16 +0100 Subject: [PATCH] chore(musare): Tweak service config --- services/musare/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/services/musare/default.nix b/services/musare/default.nix index 218584f..324d24f 100644 --- a/services/musare/default.nix +++ b/services/musare/default.nix @@ -43,8 +43,6 @@ in { @websockets { path /backend/* - header Connection upgrade - header Upgrade websocket } reverse_proxy @websockets localhost:32483 @@ -105,7 +103,14 @@ in { imageFile = pkgs.dockerTools.buildImage { name = "musare"; tag = "backend"; - contents = [pkgs.nodejs_18 pkgs.bash]; + copyToRoot = pkgs.buildEnv { + name = "musare-backend-env"; + paths = with pkgs; [ + nodejs_18 + curl + bash + ]; + }; config = { Cmd = ["node" "--es-module-specifier-resolution=node" "/opt/app/index.js"]; }; @@ -119,6 +124,9 @@ in { "32483:8080" ]; workdir = "/opt/app"; + environment = { + NODE_TLS_REJECT_UNAUTHORIZED = "0"; + }; environmentFiles = [ config.sops.templates."musare/.env".path ];