{"action":"opened","issue":{"url":"https://api.github.com/repos/deis/deis/issues/4965","repository_url":"https://api.github.com/repos/deis/deis","labels_url":"https://api.github.com/repos/deis/deis/issues/4965/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/4965/comments","events_url":"https://api.github.com/repos/deis/deis/issues/4965/events","html_url":"https://github.com/deis/deis/issues/4965","id":141351526,"number":4965,"title":"router-nginx-status currently is public accessible if enabled","user":{"login":"zhaohanweng","id":1371160,"avatar_url":"https://avatars.githubusercontent.com/u/1371160?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaohanweng","html_url":"https://github.com/zhaohanweng","followers_url":"https://api.github.com/users/zhaohanweng/followers","following_url":"https://api.github.com/users/zhaohanweng/following{/other_user}","gists_url":"https://api.github.com/users/zhaohanweng/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaohanweng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaohanweng/subscriptions","organizations_url":"https://api.github.com/users/zhaohanweng/orgs","repos_url":"https://api.github.com/users/zhaohanweng/repos","events_url":"https://api.github.com/users/zhaohanweng/events{/privacy}","received_events_url":"https://api.github.com/users/zhaohanweng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-16T17:50:49Z","updated_at":"2016-03-16T17:50:49Z","closed_at":null,"body":"Currently the router-nginx-status can be accessed publicly. According to [4368](https://github.com/deis/deis/issues/4368), now we have to flag to enable or disable it.\r\n\r\nMy question is if enabled, how can I access it only locally?\r\nCan we move the\r\n    \r\n    server {\r\n        listen 80 default_server reuseport proxy_protocol;\r\n        ...\r\n        location /router-nginx-status {\r\n            vhost_traffic_status_display;\r\n            vhost_traffic_status_display_format html;\r\n        }\r\n    }\r\n\r\nto\r\n    \r\n    server {\r\n        listen 9090 default_server;\r\n        location /router-nginx-status {\r\n            vhost_traffic_status_display;\r\n            vhost_traffic_status_display_format html;\r\n        }\r\n    }\r\n\r\nsince 9090 is only accessible internally by ELB.\r\nOr create a flag to enable publicly or only internally.\r\n"}}