Skip to content

Commit bd95417

Browse files
authored
Merge pull request #3 from clouddrove/TF-8
update config with stub status
2 parents 33df45e + b0d6480 commit bd95417

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22

3-
nginx_version: "1.15.11"
3+
nginx_version: "1.17.8"
44

55
nginx_user: nginx
66
nginx_group: nginx
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# {{ ansible_managed }}
22
server {
3-
listen 127.0.0.1:80;
4-
return 404;
5-
}
3+
listen 80;
4+
server_name _;
5+
location /nginx_status {
6+
# Enable Nginx stats
7+
stub_status on;
8+
allow {{ PrivateIp }};
9+
}
10+
}

0 commit comments

Comments
 (0)