Skip to content

Commit

Permalink
feat(health): returns 404 error by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ggguardian committed Dec 13, 2024
1 parent d697a6e commit f7579b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/files/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ http {
server {
listen 127.0.0.1:{{ .Values.proxy.service.ports.health.remoteContainerPort }};

location / {
return 404;
}

location /healthz {
default_type text/plain;
return 200 "OK\n";
Expand Down
1 change: 1 addition & 0 deletions demo/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ services:
- api.gitguardian.public
- dashboard.gitguardian.public
- hook.gitguardian.public
- forbidden.gitguardian.public
public:
extra_hosts:
kube-dns.kube-system.svc.cluster.local: "127.0.0.11"
Expand Down
4 changes: 4 additions & 0 deletions demo/files/server/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ http {
server {
listen 127.0.0.1:8081;

location / {
return 404;
}

location /healthz {
default_type text/plain;
return 200 "OK\n";
Expand Down
4 changes: 4 additions & 0 deletions docker/files/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ http {
server {
listen 127.0.0.1:8081;

location / {
return 404;
}

location /healthz {
default_type text/plain;
return 200 "OK\n";
Expand Down

0 comments on commit f7579b5

Please sign in to comment.