Skip to content

Instantly share code, notes, and snippets.

@badouralix
Created May 30, 2021 22:03
Show Gist options
  • Select an option

  • Save badouralix/a95af2ab5d710cc2ca08bf57eb8a4ae2 to your computer and use it in GitHub Desktop.

Select an option

Save badouralix/a95af2ab5d710cc2ca08bf57eb8a4ae2 to your computer and use it in GitHub Desktop.

Revisions

  1. badouralix created this gist May 30, 2021.
    26 changes: 26 additions & 0 deletions status.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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;
    }
    }