kind: ConfigMap
apiVersion: v1
metadata:
  name: zuul-static
data:
  zuul.conf: |+
    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;
        #access_log  /var/log/nginx/host.access.log  main;

        location / {
            root   /usr/share/nginx/html;
            index  index.html index.htm;
        }

        location /api/connection {
          proxy_pass http://zuul-web:9000;
        }

        location /console-stream {
          proxy_pass http://zuul-web:9000/api/tenant/GoodMoney/console-stream;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "Upgrade";
          proxy_read_timeout 3600s;
        }

        location /api {
          proxy_pass http://zuul-web:9000/api/tenant/{{ whitelabel_tenant }};
        }

        #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;
        }
    }
