-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose API/stub_status on a custom port #344
Conversation
Also allow disabling the API. If disabled, nginx will listen on a socket, /var/run/nginx.sock, so the IC can still connect to modify upstream servers.
- Always enable Plus API over socket - Update cli-arguments - stub_status never listens on socket - Validate status port
- Port range handling - Assume API will be accessed by proxy - No root directive in socket status block - Remove bad socket listen in oss status
- Add test for status port - Update cli args doc
@r4j4h here's our internal stub-status PR. You can see it doesn't have the |
Thanks @isaachawley, this looks good. I think supporting multiple CIDRs is a great idea! I am thinking we can accept the array of CIDRs via comma separated list in the |
That sounds great @r4j4h, Thanks |
Hi @isaachawley and @pleshakov , sorry it took me a little while but I have a first stab at #387 if you would like to take a look when you have some time. :) |
NGINX Plus will listen on a socket,
/var/run/nginx-plus-api.sock
, so the Ingress Controller can still connect to modify upstream servers when the API is disabled.Adds command-line arguments:
-nginx-status
to enable/disable status & stub_status-nginx-status-port
the portChecklist: