apiVersion: v1
kind: ConfigMap
metadata:
  name: app-utility-pigeon-wfe-config-map
  namespace: app-utility
  labels:
    name: app-utility-pigeon-wfe-config-map
data:
   nginx_conf: |-
     user  root;
     worker_processes  1;
     
     # error_log  logs/error.log;
     #error_log  logs/error.log  notice;
     #error_log  logs/error.log  info;
     
     #pid        logs/nginx.pid;
     
     
     events {
         worker_connections  1024;
     }
     
     
     http {
         include       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  logs/access.log  main;
     
         sendfile        on;
         #tcp_nopush     on;
     
         #keepalive_timeout  0;
         keepalive_timeout  65;
     
         # gzip  on;
         # gzip_min_length  1k;
         # gzip_buffers     4 16k;
         # gzip_http_version 1.1;
         # gzip_comp_level 2;
         # gzip_types       text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript application/json;
         # gzip_disable "MSIE [1-6]\.";
         # gzip_vary on;
     
         # gzip_proxied off;
         gzip on;
         gzip_min_length 1k;
         gzip_comp_level 9;
         gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
         gzip_vary on;
         gzip_disable "MSIE [1-6]\.";
     
         server {
             listen       11554;
             server_name  localhost;
             client_max_body_size    1000m;
             #charset koi8-r;
             #编码格式，避免url参数乱码
             charset utf-8;
     
             #access_log  logs/host.access.log  main;
     
             location /pigeon-wfe {
                 alias   /usr/share/nginx/html;
                 index  index.html;
                 try_files $uri $uri/ /pigeon-wfe/index.html;
                
             }
         
             #error_page  404              /404.html;
         
             # redirect server error pages to the static page /50x.html
             #
             error_page   500 502 503 504  /50x.html;
             location = /50x.html {
                 root   /usr/share/nginx/html;
             }
         
         }
        
     
     }    
            
            