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
And /etc/systemd/system/signalk.service
has
Environment=EXTERNALPORT=443
This is what happens when i do sudo systemctl start signalk
It must be simple, but how do i set the port number?12 Replies
Run signalk-server-setup
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?Definitely the server config
You can just run setup again
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.
Do the npm install won’t effect this
I think you overwrote the settings.json?
No thats the strange thing. I only changed packages.json and did npm i. Although i copied about 20+ additional plugins in packages.json.
Strange. I don’t why it switched back to 3000
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)
npm install would not touch those
oh wait obviously these were touched when i ran setup (i guess)
Yes
well, no problem, will make a note to run setup anyway. Thanks