chore(musare): Tweak service config

This commit is contained in:
GaspardCulis 2024-11-08 10:56:16 +01:00
parent bbb5d8b775
commit c73204ce61

View file

@ -43,8 +43,6 @@ in {
@websockets { @websockets {
path /backend/* path /backend/*
header Connection upgrade
header Upgrade websocket
} }
reverse_proxy @websockets localhost:32483 reverse_proxy @websockets localhost:32483
@ -105,7 +103,14 @@ in {
imageFile = pkgs.dockerTools.buildImage { imageFile = pkgs.dockerTools.buildImage {
name = "musare"; name = "musare";
tag = "backend"; tag = "backend";
contents = [pkgs.nodejs_18 pkgs.bash]; copyToRoot = pkgs.buildEnv {
name = "musare-backend-env";
paths = with pkgs; [
nodejs_18
curl
bash
];
};
config = { config = {
Cmd = ["node" "--es-module-specifier-resolution=node" "/opt/app/index.js"]; Cmd = ["node" "--es-module-specifier-resolution=node" "/opt/app/index.js"];
}; };
@ -119,6 +124,9 @@ in {
"32483:8080" "32483:8080"
]; ];
workdir = "/opt/app"; workdir = "/opt/app";
environment = {
NODE_TLS_REJECT_UNAUTHORIZED = "0";
};
environmentFiles = [ environmentFiles = [
config.sops.templates."musare/.env".path config.sops.templates."musare/.env".path
]; ];