From e7c0fb56e7655dd8598f6d556b2be318278d9bf0 Mon Sep 17 00:00:00 2001 From: pieter Date: Thu, 20 Nov 2025 06:56:09 +0000 Subject: [PATCH] =?UTF-8?q?templates/configmap.yaml=20=E3=82=92=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/configmap.yaml | 95 +++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 55 deletions(-) diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 14da894..2a3b9c3 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -1,60 +1,45 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "{{ .Chart.Name }}.fullname" . }}-nginx-config + name: {{ include "phpmyadmin-nginx.fullname" . }} labels: - {{- include "{{ .Chart.Name }}.labels" . | nindent 4 }} + {{- include "phpmyadmin-nginx.labels" . | nindent 4 }} data: - nginx.conf: | - user nginx; - worker_processes 1; - - error_log /var/log/nginx/error.log warn; - pid /var/run/nginx.pid; - - events { - worker_connections 1024; - } - - http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - keepalive_timeout 65; - - server { - listen 80; - server_name localhost; - - root /var/www/html; - index index.php index.html index.htm; - - location / { - try_files $uri $uri/ /index.php?$query_string; - } - - location ~ \.php$ { - include fastcgi_params; - fastcgi_pass 127.0.0.1:9000; - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - } - - error_page 500 502 503 504 /50x.html; - location = /50x.html { - root /usr/share/nginx/html; - } - - {{- if .Values.nginx.customConfig.enabled }} - {{ .Values.nginx.customConfig.snippet | indent 12 }} - {{- end }} - - } - } + config.inc.php: | +