wantedly/nginx-basic-auth

Name: nginx-basic-auth

Owner: Wantedly, Inc.

Description: Nginx to add basic auth functionality to the backend

Created: 2016-04-05 01:40:34.0

Updated: 2017-04-06 07:57:10.0

Pushed: 2017-09-28 05:42:42.0

Homepage: null

Size: 6

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nginx-basic-auth

Docker Repository on Quay.io

Nginx to add basic auth functionality to the backend

How to use

At first, generate your_auth_password by htpasswd command.

passwd -c .htpasswd hoge
password:
ype new password:
ng password for user hoge

t .htpasswd
:$apr1$RQ5Y56MB$ZssnUWsCOytPU8WxXTFcs.
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Then launch Docker container.

cker run -d --rm \
 80:80 \
 BACKEND_URL=http://localhost:9200 \
 SERVER_NAME=Elasticsearch \
 BASIC_AUTH_USER=your_auth_user \
 BASIC_AUTH_PASSWORD=your_auth_password \
name elasticsearch-proxy-example \
net host

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.