🆕 Setup config loading

This commit is contained in:
steelbrain
2024-02-15 05:21:46 +02:00
parent f1e41d5cfd
commit d7c01d3446
7 changed files with 136 additions and 19 deletions

View File

@@ -3,12 +3,19 @@
"log": "stdout", // type: "stdout" | "stderr" | any string (file path) | false
// Other possibilities:
"log": "$TMP/ffmpeg-over-ip.server.log",
// ^ $TMP is a special variable here, only supported in "log" config where it uses the operating system
"log": "$TMPDIR/ffmpeg-over-ip.server.log",
// ^ $TMPDIR is a special variable here, only supported in "log" config where it uses the operating system
// temp folder
"log": false,
// ^ This turns off logging completely
"log": "stdout",
"log": "stderr",
"log": "/var/log/messages.log"
"log": "/var/log/messages.log",
"listenAddress": "0.0.0.0", // type: string
// You can specify a specific address to listen to, by default, listens on all addresses
"listenPort": 5050, // type: number
"authSecret": "YOUR-CLIENT-PASSWORD-HERE" // type: string
// ^ Ideally keep this within reason (It'll be received in an HTTP header) but definitely not less than 15 characters
}