Skip to content

Commit

Permalink
Merge pull request #3 from clouddrove/TF-8
Browse files Browse the repository at this point in the history
update config with stub status
  • Loading branch information
anmolnagpal committed Jan 28, 2020
2 parents 33df45e + b0d6480 commit bd95417
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

nginx_version: "1.15.11"
nginx_version: "1.17.8"

nginx_user: nginx
nginx_group: nginx
Expand Down
11 changes: 8 additions & 3 deletions templates/config/sites-enabled/default.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# {{ ansible_managed }}
server {
listen 127.0.0.1:80;
return 404;
}
listen 80;
server_name _;
location /nginx_status {
# Enable Nginx stats
stub_status on;
allow {{ PrivateIp }};
}
}

0 comments on commit bd95417

Please sign in to comment.