Nchan Publish/Subscribe server (Pub/Sub). Original documentation for server on: https://nchan.io/
Note: All paths related to root of this repository
cd local
./build.sh
cd vm
./build.sh
cd rancher
./build.sh
Login to Docker registry:
docker login -u "USERNAME" -p "PASSWORD or TOKEN"
Push to Docker registry:
docker push FULL_NAME_OF_THE_IMAGE
Go to local
dir
cd local
Run:
docker-compose up
Stop:
Ctrl+C
Remove:
docker-compose down
Run Redis Cluster:
cd rancher/redis-cluster
docker-compose up
Run Nchan:
cd rancher
docker-compose up
Available env variables:
REDIS_CLUSTER_PASSWORD=RedisClusterPassword
API_ACCOUNTS_URL=api-accounts
NCHAN_KEEPALIVE_TIMEOUT=
NCHAN_SUB_USER_MESSAGE_BUFFER_LENGTH=
NCHAN_SUB_SHARED_MESSAGE_BUFFER_LENGTH=
NCHAN_SUB_USER_UNSUBSCRIBE_REQUEST_COMMENT=#
NCHAN_SUB_SHARED_UNSUBSCRIBE_REQUEST_COMMENT=#
Install globally:
npm i -g http-server
cd html
http-server -p 9000
Go to: http://127.0.0.1:9000