Created
May 30, 2021 22:03
-
-
Save badouralix/a95af2ab5d710cc2ca08bf57eb8a4ae2 to your computer and use it in GitHub Desktop.
Nginx in rancher configuration for datadog monitoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 81; | |
server_name localhost; | |
access_log off; | |
allow 127.0.0.1; | |
allow 172.17.0.0/16; # docker bridge cidr | |
allow 10.42.0.0/16; # rancher managed cidr | |
deny all; | |
location /nginx_status { | |
# Choose your status module | |
# freely available with open source NGINX | |
stub_status; | |
# for open source NGINX < version 1.7.5 | |
# stub_status on; | |
# available only with NGINX Plus | |
# status; | |
# ensures the version information can be retrieved | |
server_tokens on; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment