ecs-auth-microservice

Auth microserivice Docker: Nginx -> Node -> Mongo

OTHER License

Downloads
20
Stars
12

ECS-AUTH-MICROSERVISE

(Nginx as foreground, NodeJs as a primary server, MongoDb or Radis for the accounts store)

Assembly Status
Node & Mongo Build Status
Node & Redis Build Status

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.

NginxNodeJSMongoDbRedis

IMPLEMENTS
  • Boundles API
  • Koa2
  • MongoDb native
  • Redis native
  • Password encryption
  • JWT authentication
DEFAULT INSTALL (USE MongoDB)
docker-compose up --build
sh build/mongo.sh # install with MongoDb (default)
sh build/redis.sh # install with Redis
CONFIGURATION
.env
RUN
http://localhost:88 # (Nginx 88 => NodeJs 8777)
RUN AS NODE SERVER
# STORAGE=redis
npm start 

CHECK MICROSERVICE STATUS

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
     }
 }
Package Rankings
Top 16.13% on Npmjs.org
Badges
Extracted from project README's
Build Status Build Status Coverage Status GitHub license
Related Projects