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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Nginx to add basic auth functionality to the backend
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