Skip to content

Commit

Permalink
fix: remove livenessProbe from nginx access log
Browse files Browse the repository at this point in the history
Signed-off-by: ffais <[email protected]>
  • Loading branch information
ffais committed Jan 27, 2025
1 parent 174d311 commit 8d4e982
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wordpress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: wordpress
description: A Helm chart for Wordpress on Kubernetes with NGINX and PHP-FPM
type: application
version: 0.1.12
version: 0.1.13
appVersion: "6.7.1"
dependencies:
- name: mariadb
Expand Down
9 changes: 8 additions & 1 deletion wordpress/templates/nginx-configurations-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ data:
client_max_body_size {{ .Values.nginx.confsOverride.maxBodySize }};
fastcgi_buffers 64 4K;
{{- if not .Values.debug.enabled }}
location ~ {{ .Values.nginx.livenessProbe.httpGet.path }} {
access_log off;
log_not_found off;
}
{{- end }}
location ~ /\.ht {
deny all;
return 403;
Expand All @@ -38,7 +45,7 @@ data:
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
{{- end }}
location / {
try_files $uri $uri/ /index.php?$args;
}
Expand Down

0 comments on commit 8d4e982

Please sign in to comment.