Skip to content
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

Remove unnecessary locations #26

Closed
drawing opened this issue Jul 26, 2023 · 3 comments · Fixed by #105
Closed

Remove unnecessary locations #26

drawing opened this issue Jul 26, 2023 · 3 comments · Fixed by #105
Assignees
Labels
bug Something isn't working
Milestone

Comments

@drawing
Copy link
Collaborator

drawing commented Jul 26, 2023

Remove unnecessary paths

default server

        # health checks in cloud providers require the use of port 80
        location /healthz {

                access_log off;
                return 200;
        }

        # this is required to avoid error if nginx is being monitored
        # with an external software (like sysdig)
        location /nginx_status {

                allow 127.0.0.1;

                allow ::1;

                deny all;

                sysguard   off;
                access_log off;
                stub_status on;
        }

        location /traffic_status {

                allow 127.0.0.1;

                allow ::1;

                deny all;

                sysguard   off;
                access_log off;
                req_status_show;
        }

        location /deny_reload_data {

                sysguard   off;
                access_log off;
                content_by_lua_file /etc/nginx/lua/load_deny.lua;
        }

listen 10246 server

location /deny_reload_data {
        content_by_lua_file /etc/nginx/lua/load_deny.lua;
}
@lianglli lianglli added this to the 1.0.1 milestone Jul 26, 2023
@drawing drawing changed the title Remove unnecessary paths Remove unnecessary locations Jul 26, 2023
@lianglli lianglli self-assigned this Jul 26, 2023
@lianglli lianglli added the bug Something isn't working label Aug 7, 2023
@lianglli
Copy link
Member

    location /healthz {

在80和10246同时保留,与原nginx ingress保持一致

@lianglli
Copy link
Member

location /nginx_status

location /healthz {

在80和10246同时保留,与原nginx ingress保持一致

@lianglli
Copy link
Member

status port监听在127.0.0.1:10246,可用于本机调试;

默认http 80端口监听在eth0 机器IP:80,可用于远端运维系统获取健康状态,流量等相关信息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants