Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.deb install #303

Open
samuk opened this issue Mar 26, 2022 · 1 comment
Open

.deb install #303

samuk opened this issue Mar 26, 2022 · 1 comment
Labels
Documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@samuk
Copy link

samuk commented Mar 26, 2022

I installed go-ssb-room_2.0.6_Linux_x86_64.deb

I had a look in sudo nano /etc/systemd/system/go-ssb-room.service

Which showed. localhost:8899

I had a look at https://github.com/ssb-ngi-pointer/go-ssb-room/blob/master/docs/files/debian-postinstall.sh
So I did
adduser --system --home /var/lib/go-ssb-room go-ssb-room
chown go-ssb-room /var/lib/go-ssb-room
sudo systemctl daemon-reload
sudo systemctl start go-ssb-room

http://127.0.0.1:8899/ displays 'bad host'

I don't really understand what this line means: "you need to at least change the https domain in the systemd service."

Is it configured to work out of the box on localhost?

cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" 5.10.0-13-amd64

@decentral1se
Copy link
Member

👋 @samuk, it is referring to the option provided by the go-ssb-room binary:

➜  server (master) ✔ ./server -h
Usage of ./server:
  ...
  -https-domain string
    	which domain to use for TLS and AllowedHosts checks
  ...

You can see an example of this in the example systemd file:

https://github.com/ssb-ngi-pointer/go-ssb-room/blob/6f5edbaa438fe473cc865e283bb3fd32de231c44/docs/files/example-systemd.service#L15

Where you need to change -https-domain my-example-room.somewhere to your domain.

I think this could be clearer in the output, do you have a suggestion? We could submit a docs PR then.

@decentral1se decentral1se added Documentation Improvements or additions to documentation good first issue Good for newcomers labels Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants