nginx: fix basic auth for default vhost
This commit is contained in:
parent
23062e7b18
commit
c6d3b804d9
|
@ -16,6 +16,9 @@ The **patch** part changes incrmentally at each release.
|
|||
### Changed
|
||||
* elasticsearch: use ES_TMPDIR variable for custom tmpdir, (from `/etc/default/elasticsearch` instead of changing `/etc/elesticsearch/jvm.options`).
|
||||
|
||||
### Fixed
|
||||
* nginx: fix basic auth for default vhost
|
||||
|
||||
## [9.1.6] - 2018-02-02
|
||||
|
||||
### Added
|
||||
|
|
|
@ -23,10 +23,12 @@ server {
|
|||
root /var/www;
|
||||
|
||||
# Auth.
|
||||
satisfy any;
|
||||
include /etc/nginx/snippets/ipaddr_whitelist;
|
||||
deny all;
|
||||
|
||||
auth_basic "Reserved {{ ansible_fqdn }}";
|
||||
auth_basic_user_file /etc/nginx/snippets/private_htpasswd;
|
||||
satisfy any;
|
||||
|
||||
location / {
|
||||
index index.html index.htm;
|
||||
|
|
Loading…
Reference in a new issue