staltz / easy-ssb-pub

An easy-to-host server that runs an SSB "Pub"
GNU Affero General Public License v3.0
209 stars 35 forks source link

Installation outside Docker, root, port 80 and problems #35

Open stampf opened 5 years ago

stampf commented 5 years ago

I tried to install easy-ssb-pub as root, but then there's a failure in installation of leveldown (whatever that might be) and/or the launch of gyp. So I resorted to install in a simple user account (npm install), but then I can't launch (npm start) because it needs access to privileged port 80. So I ran it as root, but it then uses/creates a ~root/.ssb/secret file and doesn't use the one under ~user.

Is there a way to simplify this conundrum? I found where to change the port (in a config.ts), but I dont' know if or how I could pass that information on the command line. If someone points me to some doc on acceptable parameters, I'm willing a do a pull request with some tentative documentation.