Interlegis Public Rancher Charts for Kubernetes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.6 KiB

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "mailproxy.fullname" . }}-nginx-conf
labels:
{{- include "mailproxy.labels" . | nindent 4 }}
data:
nginx-conf: |-
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
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 off;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
mail {
include /etc/nginx/mailhosts/*.conf;
}
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;
}
}