From e6824bb6dcdcef4996c469bc671058febcc542f1 Mon Sep 17 00:00:00 2001 From: John Hays Date: Sat, 2 Mar 2024 11:51:01 -0800 Subject: [PATCH] Moved reference to dashboard.ini to /usr/local/etc --- README.md | 2 ++ index.js | 2 +- dashboard.ini => util/dashboard.ini | 10 +++++----- 3 files changed, 8 insertions(+), 6 deletions(-) rename dashboard.ini => util/dashboard.ini (67%) diff --git a/README.md b/README.md index bb53b02..c135f86 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ as legitimate. I typically run Apache2 or another webserver to allow Certbot to typically reside in /etc/live/**your domain name** and I simply soft link (ln -s) them from the dsgwdashboard directory. You can disable the webserver, such as Apache2 or NGNIX once you have the certificates. +**Edit util/dashboard.ini and copy to /usr/local/etc/dashboard.ini** + Before starting up the dsgwdashboard you will want to have DStarGateway running, to prepopulate the log files. Your first task will be to edit dashboard.ini to put in your hostname and to ensure file paths match your install of DStarGateway. The dashboard parses those log files in realtime to update the dashboard. diff --git a/index.js b/index.js index a890ef9..ef92bb4 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const path = require('path'); const Tail = require('tail-file'); const CircularBuffer = require("circular-buffer"); -const inifile = ini.parse(fs.readFileSync('./dashboard.ini', 'utf-8')); +const inifile = ini.parse(fs.readFileSync('/usr/local/etc/dashboard.ini', 'utf-8')); const host = inifile.config.host; const port = inifile.config.port; const links = inifile.logs.links; diff --git a/dashboard.ini b/util/dashboard.ini similarity index 67% rename from dashboard.ini rename to util/dashboard.ini index 53ecab0..c198364 100644 --- a/dashboard.ini +++ b/util/dashboard.ini @@ -3,13 +3,13 @@ headers=/var/log/dstargateway/Headers.log links=/var/log/dstargateway/Links.log [config] dgwconfig=/usr/local/etc/dstargateway.cfg -host=nw7dr.ampr.org +host= #enter your domain name here (this should also have a cert for https) port=443 [urls] -sponsorname=Greater Kingston Radio Club -cosponsorname=Northwest Digital Radio Club -sponsor=https://groups.io/g/gkrc -cosponsor=https://www.qrz.com/db/NW7DR +sponsorname= #sponsor name +cosponsorname= #cosponsor name +sponsor= #URL to sponsor +cosponsor= #URL to cosponsor registersite=D-STAR Registration registration=https://regist.dstargateway.org livename_1=IRCDDB Live