apiVersion: v1
kind: ConfigMap
metadata:
    name: nginxtest-config
    namespace: kzytest
data:
  default.conf: |
                server {
                        listen       80;
                        server_name  localhost;
                        charset utf-8;
                        location / {
                            index index.html;
                            root /usr/share/nginx/html;   
                            try_files $uri $uri/ /index.html =404;
                        }

                        location ^~/japi/ {
                          proxy_pass   http://192.168.1.88:30022/;
                        }

                        location ^~/api/ {
                          proxy_pass  http://192.168.1.88:30022/;
                          proxy_set_header  X-Real-IP $remote_addr;
                        }

                        error_page   500 502 503 504  /50x.html;
                        location = /50x.html {
                                root   html;
                        }
 
                }
