Update README and Links

only_http
John Hays 10 months ago
parent 6ed6445188
commit 458f6dfca4

@ -11,7 +11,7 @@ You will need to have a domain name for the site and current certificates tied t
**key.pem** and **cert.pem**
in the same directory as index.js. I suggest using (Certbot)[https://certbot.eff.org/] to obtain free signed certificates that all major browsers recognize
as legitimate. I typically run Apache2 or another webserver to allow Certbot to authenticate the site to create the certificates. The certificates will
typically reside in /etc/live/**your domain name** and I simply soft link (ls -s) them from the dsgwdashboard directory. You can disable the webserver,
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.
Before starting up the dsgwdashboard you will want to have DStarGateway running, to prepopulate the log files. Your first task

@ -33,7 +33,9 @@ socket.addEventListener("links", data => {
$("#linktable").append("<tr><th>Repeater</th><th>Reflector</th><th>Protocol</th>" +
"<th>Device</th><th>Direction</th><th>Timestamp</th></tr>");
$.each(data, function(index,val){
$("#linktable").append("<tr><td>" + val.repeater + "</td><td>" + val.reflector +
var reflector = val.reflector.substring(0,7).trim();
if (reflector.substring(0,3) == "REF") reflector = "<a href=\"http://" + reflector + ".dstargateway.org\" target=\"reflector\">" + val.reflector + "</a>";
$("#linktable").append("<tr><td>" + val.repeater + "</td><td>" + reflector +
"</td><td>" + val.protocol + "</td><td>" + val.device + "</td><td>" +
val.direction + "</td><td>" + val.timestamp + "</td></tr>");
// console.log(index, val);

Loading…
Cancel
Save