SK
Signal K6mo ago
Bram

signalk-server on port 80/443

I would like to run signalk-server regular 80/443 ports. But i keeps running on 3000/3443. In settings.json i have "ssl": true. /etc/systemd/system/signalk.socket
[Socket]
ListenStream=443
ListenStream=80
[Socket]
ListenStream=443
ListenStream=80
And /etc/systemd/system/signalk.service has Environment=EXTERNALPORT=443 This is what happens when i do sudo systemctl start signalk
May 05 19:43:05 tjielpi3b signalk-server[3505]: The installed version of node (v22.15.0) is different than the recommended version (18 - 20). See https://github.com/SignalK/signalk-server/wiki/Installing-and-Updating-Node.js for more information how to upgrade.
May 05 19:43:16 tjielpi3b signalk-server[3505]: @signalk/aisreporter:aisreporter: mmsi missing in settings
May 05 19:43:17 tjielpi3b signalk-server[3505]: [signalk-to-nmea0183] GGA: no position, not converting
...
May 05 19:43:21 tjielpi3b node[3505]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
May 05 19:43:21 tjielpi3b signalk-server[3505]: signalk-server running at 0.0.0.0:3443
May 05 19:43:21 tjielpi3b signalk-server[3505]: Redirect server running on port 3000
May 05 19:43:05 tjielpi3b signalk-server[3505]: The installed version of node (v22.15.0) is different than the recommended version (18 - 20). See https://github.com/SignalK/signalk-server/wiki/Installing-and-Updating-Node.js for more information how to upgrade.
May 05 19:43:16 tjielpi3b signalk-server[3505]: @signalk/aisreporter:aisreporter: mmsi missing in settings
May 05 19:43:17 tjielpi3b signalk-server[3505]: [signalk-to-nmea0183] GGA: no position, not converting
...
May 05 19:43:21 tjielpi3b node[3505]: *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html>
May 05 19:43:21 tjielpi3b signalk-server[3505]: signalk-server running at 0.0.0.0:3443
May 05 19:43:21 tjielpi3b signalk-server[3505]: Redirect server running on port 3000
It must be simple, but how do i set the port number?
12 Replies
Scott Bender
Scott Bender6mo ago
Run signalk-server-setup
Bram
BramOP6mo ago
indeed super simple, thx, it worked. after i changed packages.json and npm install, signalk-server is listening on 3000 again. Is there a connection between installing the dependencies and the server configuration?
Scott Bender
Scott Bender6mo ago
Definitely the server config You can just run setup again
Bram
BramOP6mo ago
Yes i see that works, will make a note of this. Just for my curiousity, is there something that i can do to prevent this? I'm afraid i forget to run setup a year from now when i remove node_modules and install again.
Scott Bender
Scott Bender6mo ago
Do the npm install won’t effect this I think you overwrote the settings.json?
Bram
BramOP6mo ago
No thats the strange thing. I only changed packages.json and did npm i. Although i copied about 20+ additional plugins in packages.json.
Scott Bender
Scott Bender6mo ago
Strange. I don’t why it switched back to 3000
Bram
BramOP6mo ago
actually settings is changed at the same time of packages.json i see let me check just like baseDeltas.json (that i didn't touch as well)
Scott Bender
Scott Bender6mo ago
npm install would not touch those
Bram
BramOP6mo ago
oh wait obviously these were touched when i ran setup (i guess)
Scott Bender
Scott Bender6mo ago
Yes
Bram
BramOP6mo ago
well, no problem, will make a note to run setup anyway. Thanks

Did you find this page helpful?