(Nginx as foreground, NodeJs as a primary server, MongoDb or Radis for the accounts store)
Assembly | Status |
---|---|
Node & Mongo | |
Node & Redis |
This assemblage implements REST auth micoservice proxied by Nginx as Reverse Proxy Server. Represents high scalable architecture for "NodeJS" applications in the form of boundles inside.
- Boundles API
- Koa2
- MongoDb native
- Redis native
- Password encryption
- JWT authentication
docker-compose up --build
sh build/mongo.sh # install with MongoDb (default)
sh build/redis.sh # install with Redis
.env
http://localhost:88 # (Nginx 88 => NodeJs 8777)
# STORAGE=redis
npm start
http://localhost:88/status/:key
(see .env)
HTTP/1.1 200 OK
{
"status": 200,
"message": {
"now":"01:52:51 GMT+0300 (EEST)",
"revision":"62b1b88ef48bb3fe859b2bd374e64576f79e6cca",
"version":"v1.1.2",
"residentSet":"49.8 MB",
"totalHeap":"30.4 MB",
"usedHeap":"16.8 MB",
"uptime":22.969
}
}