Disclaimer: This project has not been audited and not recommended for production environments.
- A Slack organization.
- Slack bot keys where you must create a Classic App.
- Have SQLite3 version 3.7.3 or later installed (tested on 3.11.0)
- Currently, you must build from source, so rustup.
- On Linux:
$ 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
$ cargo build
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
$ bash deploy.sh
$ 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