feat: include version number in server startup message
All checks were successful
Build and Push Docker Image / build (push) Successful in 55s
CI / Security audit (push) Successful in 1m14s
CI / Tests & coverage (push) Successful in 1m31s

This commit is contained in:
2026-05-17 17:51:59 +01:00
parent 27648c78b3
commit 2550722446
2 changed files with 3 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ const fs = require('fs');
const http = require('http');
const https = require('https');
require('dotenv').config();
const { version } = require('../package.json');
// Setup logging with levels
// Levels: debug (0), info (1), warn (2), error (3), silent (4)
@@ -300,7 +301,7 @@ const isSnakeoil = TLS_ENABLED &&
server.listen(PORT, () => {
console.log(`=================================`);
console.log(` sofarr - Your Downloads Dashboard`);
console.log(` sofarr v${version} - Your Downloads Dashboard`);
console.log(` Server running on ${protocol}://localhost:${PORT}`);
if (tlsCredentials && isSnakeoil) {
console.warn(` [TLS] Using bundled snakeoil certificate (self-signed).`);