I wanted to change my running PhotoStructure (PS) for server installation on Ubuntu (nodes version) to be accessible on port 80 instead of 1787 (which is probably a bad idea already) and I can’t now revert it back.
Here is what I did to screw it up:
stopped PS
plugged PS_HTTP_PORT=80 line into ~/.profile right under PS_EXPOSE_NETWORK_WITHOUT_AUTH=“true” (which works great, btw)
source ~/.profile
started PS.
Attempted to access PS on LAN IP with port 80 - does not work, w/o port - same.
Note that something may already be bound to that port (if you had previously installed nginx or apache2).
You’ll need to figure out how to run this on reboot (if you’ve got an /etc/rc.local you could plop it into there).
You could also use setcap, but you’d have to authorize the node binary to bind to port 80, which would let any node script on your box to bind to privileged ports, and that’s not a great idea.
Pulled alpha.2. PS started and I can access it from the host’s web browser on localhost:1787. Can’t from any other machine on LAN. Checked both library setting in
I suspect you’ve got a firewall setting gumming up the works.
If you go into an empty directory in a terminal and run npx serve, can you open that public IP address on your other LAN boxes?
Here’s an example run:
$ npx serve
Need to install the following packages:
serve
Ok to proceed? (y) y
┌───────────────────────────────────────────────┐
│ │
│ Serving! │
│ │
│ - Local: http://localhost:5000 │
│ - On Your Network: http://10.1.1.24:5000 │
│ │
│ Copied local address to clipboard! │
│ │
└───────────────────────────────────────────────┘
I don’t know whats happening or if this is relevant, but if you want to be able to access it from anywhere securely, you can use cloudflared tunnel with cloudflare teams.
Thanks for the update and the fix. It seems non trivial to check what BOM bit a file has. I don’t think plain Ubuntu 20 vi is adding anything fishy to my files and the problem was intermittent.