apiVersion: v1
kind: ConfigMap
metadata:
  name: message-service-nginx-config
  namespace: default
data:
  default.conf: |
    server {
     server_name ~.*;

     location / {
         root /app;

         try_files $uri /index.php$is_args$args;
     }

     location ~ ^/index\.php(/|$) {
         client_max_body_size 50m;

         fastcgi_pass message-service-cluster-ip:9000;
         fastcgi_buffers 16 16k;
         fastcgi_buffer_size 32k;
         include fastcgi_params;
         fastcgi_param SCRIPT_FILENAME /app/public/index.php;
     }

     error_log /dev/stderr debug;
     access_log /dev/stdout;
    }

