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.
38 lines
767 B
38 lines
767 B
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;
|
|
}
|
|
}
|
|
|
|
|