https://github.com/progrium/consul-access
https://github.com/progrium/consul-access
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/progrium/consul-access
- Owner: progrium
- License: bsd-3-clause
- Created: 2015-02-22T16:04:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-22T16:24:44.000Z (over 11 years ago)
- Last Synced: 2025-06-11T04:48:20.079Z (about 1 year ago)
- Language: Nginx
- Size: 133 KB
- Stars: 14
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# consul-access
Lightweight password protection to Consul HTTP using Nginx.
## Using consul-access
Simply link against a running Consul container using the alias `consul` and provide a username and password with the `HTPASSWD` environment variable:
$ docker pull progrium/consul-access
$ docker run -d \
--link consul:consul \
--env "HTPASSWD= " \
--publish 80:80
progrium/consul-access
If you're running Consul in `--net=host` mode, you can just set the IP manually with `--add-host`:
$ docker run -d \
--add-host consul: \
--env "HTPASSWD= " \
--publish 80:80
progrium/consul-access
## Security
Since HTTP [Basic authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) is used, you should only access this behind SSL otherwise your password is transmitted unencrypted.
## License
BSD