Go to file
Jeff 4450ce7f8a
add cap_net_bind_service to systemd unit
this allows running on port 80 as non privileged user.
2021-05-08 15:50:22 -04:00
.github/workflows Add release.yml 2021-04-21 15:41:55 +10:00
debian add cap_net_bind_service to systemd unit 2021-05-08 15:50:22 -04:00
src Fix typo 2021-04-29 13:21:03 +10:00
.gitignore Add file storage & retrieval tests 2021-03-19 11:18:03 +11:00
.rustfmt.toml Add .rustfmt.toml 2021-03-25 10:56:16 +11:00
BUILDING.md Update BUILDING 2021-04-21 13:46:35 +10:00
CLI.md Include docs directly (wikis don't carry across forks) 2021-04-23 14:03:26 +10:00
Cargo.lock Update version number 2021-05-03 14:23:37 +10:00
Cargo.toml Update version number 2021-05-03 14:23:37 +10:00
DOCUMENTATION.md Update documentation 2021-04-29 10:28:38 +10:00
LICENSE Add license 2021-03-22 16:36:03 +11:00
README.md Update README 2021-04-26 13:50:28 +10:00

README.md

example workflow

API Documentation

CLI Reference

Want to build from source? See BUILDING.md.

Installation Instructions

Step 1: Pull in the Session open group server executable:

sudo curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg
echo "deb https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/oxen.list
sudo apt update
sudo apt install session-open-group-server

You can check that the service is running by doing systemctl status session-open-group-server. If the service didn't start and gives you the error: error creating server listener, you can fix this by doing: setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/session-open-group-server.

Step 2: Add a room

Add a room of your choice with the following command:

/usr/bin/session-open-group-server --add-room {room_id} {room_name}

room_id must be lowercase and consist of only letters, numbers and underscores.

Step 3: Print your server's URL

Print the URL users can use to join rooms on your open group server by running:

/usr/bin/session-open-group-server --print-url

Step 4: Add an image for your new room

There are two ways to do this. Either:

  • make yourself a moderator using the following command: /usr/bin/session-open-group-server --add-moderator {public_key} {room_id}
  • add your room on Session desktop using the URL printed earlier
  • use Session desktop to upload a picture for your room

Or

  • Upload a JPG to your VPS
  • Put it in /var/lib/session-open-group-server/files
  • Rename it to {room_id} (no file extension)

Customization

The default options the Session open group server runs with should be fine in most cases, but if you like you can run on a custom port or host, specify the path to the X25519 key pair you want to use, etc. To do this, simply add the right arguments to the ExecStart line in your systemd service file (normally located under /etc/systemd/system) and restart your service using:

systemctl restart session-open-group-server.service