Session open group server
Go to file
Ryan Tharp 28711d1e96 whitelist funcs 2020-02-17 08:53:33 +00:00
dialects move getUserAccess from config to overlay, improve logging, deny token if not on whitelist 2020-02-17 08:52:30 +00:00
docker blank acme config 2019-12-02 06:24:13 +00:00
logic whitelist funcs, passesWhitelistByUserID(), check disk and db 2020-02-17 08:53:02 +00:00
models whitelist funcs 2020-02-17 08:53:33 +00:00
nodepomf@03c62aa428 bump submodule versions 2020-01-14 04:47:10 +00:00
server@46c4f52c3f improve channel permissions 2020-02-17 08:49:31 +00:00
test include report test 2020-02-05 23:59:22 +00:00
.gitignore Ignore node_modules 2019-08-12 16:56:27 +10:00
.gitmodules include nodepomf submodule, bump submodule versions 2019-12-30 06:14:42 +00:00
.travis.yml update travis to expect a unified set up 2019-12-29 23:27:42 -08:00
Dockerfile run unit-tests, make sure local node-modules don't interfere 2020-01-14 04:47:31 +00:00
README.md fix grammar 2020-01-30 01:33:45 -08:00
config.js globalAllow(), whitelistAllow(), remove getUserAccess, start warning 2020-02-17 08:49:19 +00:00
config.json Add some instructions 2020-01-30 01:00:30 -08:00
docker-compose.yml Unified version 2019-12-30 07:03:41 +00:00
fetchWrapper.js make token optional, noJson mode 2019-09-10 08:16:34 +00:00
lib.dialect.js validUser: only lookup token if set, improve logging 2020-02-17 08:47:54 +00:00
lib.overlay.js getUserAccess(), whitelist syncing 2020-02-17 08:48:42 +00:00
logic.js remove comments meant for logging, implement moderator removal, cleanup 2019-11-08 23:32:18 +00:00
loki_template.ini update defaults 2020-01-30 00:55:43 -08:00
overlay_server.js unify it 2019-12-30 06:16:02 +00:00
package-lock.json add mysql 2019-11-28 01:58:48 +00:00
package.json add description 2019-12-02 00:42:55 +00:00
storage.js add dbMonitor to keep connection to mysql alive 2020-01-29 07:07:34 +00:00

README.md

Session Open Group Server

Session Open Group Server (previously Loki messenger public chat server)

an Express REST API for serving/storing open group room history for Session.

System requirements:

  • NodeJS
  • A storage engine supported by camintejs for persistence
    • Recommended: Mysql/MariaDB
    • Suggested: MySQL/MariaDB, SQLite3, PostgresQL, Redis
    • Possible: Mongo, CouchDB, Neo4j, Cassandra, Riak, Firebird, TingoDB, RethikDB, ArangoDB

Check our docs.loki.network for complete instruction

Manual (non-docker) set up instructions:

git submodule init
git submodule update
cp loki_template.ini loki.ini
# edit loki.ini (set your first moderator key, public_url, database type and credentials)
# edit config.json to set permanent storage backend database type and credentials
npm i -g pm2
npm i
cd nodepomf
npm i
cd ../server
npm i
cd ..
pm2 start overlay_server.js --watch --name "sogs"

Manual (non-docker) upgrade instruction:

git pull
# handle any git conflicts for loki.ini / config.json
# check loki.ini for anything you may need to update
# check config.json for anything you may need to update
git submodule update
npm i
cd nodepomf
npm i
cd ../server
npm i
pm2 restart sogs

Popular linux distribution instructions to install NodeJS

Ubuntu NodeJS installation:

curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -

then

sudo apt-get install -y nodejs