Create NodeJS configuration script #2

Merged
kornerr merged 15 commits from consult into main 2025-08-22 21:02:45 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit c2109d3922 - Show all commits

View File

@@ -2,3 +2,4 @@
apt install nodejs
mkdir -p /var/log/consult
chgrp www-data /var/log/consult
npm install -g pm2

View File

@@ -1,8 +1,8 @@
let fs = require("fs");
let http = require("http");
//let DST_DIR = "/var/log";
let DST_DIR = "/tmp";
let DST_DIR = "/var/log/consult";
//let DST_DIR = "/tmp";
let TEMPLATE_FILE_NAME = "%DIR%/consult_%UUID%";
let URL_CONSULT = "/api/consult";