Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Slackrypt Server

Disclaimer: This project has not been audited and not recommended for production environments.

logo

Prerequisites

$ sudo apt-get install build-essential
$ sudo apt-get install cmake
$ sudo apt-get install libssl-dev
$ sudo apt-get install pkg-config
$ sudo apt-get install sqlite3 libsqlite3-dev

Build

$ cargo build

Run

Export the following (replace values for your installation):

export SLACK_CHANNEL_NAME=general
export BOTUSER_AUTH_ACCESS_TOKEN=xoxb-foobar-1234567890
export SLACKRYPT_BASE_URL=example.com

then run:

$ cargo run

The user database will be located at ~/.slackrypt-server/slackrypt.db3

Deploy (an example script without docker)

$ bash deploy.sh

Docker (build and run)

$ docker build -t slackrypt-server -f Dockerfile .
$ export RUST_LOG=info
$ export SLACK_CHANNEL_NAME=general
$ export BOTUSER_AUTH_ACCESS_TOKEN=xoxb-foobar-1234567890
$ export SLACKRYPT_BASE_URL=example.com
$ docker run \
   -p 8000:8000 \
   --env RUST_LOG \
   --env SLACK_CHANNEL_NAME \
   --env BOTUSER_AUTH_ACCESS_TOKEN \
   --env SLACKRYPT_BASE_URL \
  slackrypt-server