No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
2auth
.gitignore
README.md

README.md

Docker repo

2Auth is a docker container using nginx and nodejs to protect your internal resources.

  1. Install docker and docker-compose

https://docs.docker.com/engine/installation/ https://docs.docker.com/compose/install/#prerequisites

  1. Change working directory
cd docker\2Auth
  1. Generate nginx:2auth image from Docker file
sudo docker build -t nginx:2auth .
  1. Edit 2Auth/app/config.js and save changes

  2. Edit 2Auth/nginx/default.conf and save changes

auth.yourdomain.com - authorization site
secure.yourdomain.com - private area
  1. Start docker-compose
sudo docker-compose up -d

Additional commands

List containers

docker ps 

Attach to nginx container

docker exec -i -t nginx /bin/bash

Attach to nodejs container

docker exec -i -t nodejs /bin/bash