apiVersion: v1 kind: ConfigMap metadata: name: {{ include "mailproxy.fullname" . }}-nginxconf data: phpfpm-conf: |- upstream backend { server {{ include "mailproxy.fullname" . }}-mailauth:9000; } server { listen 8080 default_server; server_name localhost; access_log /dev/stdout; error_log /dev/stderr; root /var/www/html; index index.php; location ~ /\.ht { deny all; } location ~* ^.+.(css|js|jpeg|jpg|gif|png|ico) { expires 30d; } location ~ \.php$ { fastcgi_pass backend; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }