Skip to content

Instantly share code, notes, and snippets.

@badouralix
Created May 30, 2021 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save badouralix/a95af2ab5d710cc2ca08bf57eb8a4ae2 to your computer and use it in GitHub Desktop.
Save badouralix/a95af2ab5d710cc2ca08bf57eb8a4ae2 to your computer and use it in GitHub Desktop.
Nginx in rancher configuration for datadog monitoring
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