代理GRPC服务

通过http访问grpc服务(grpc-gateway)

开始gzip压缩

通过kong ingress controller部署的,我们需要给deployment添加下面的环境变量

https://gist.github.com/Jorgevillada/06de5a6474305788709feb9dad4a0b0d

            - name: KONG_NGINX_HTTP_GZIP
              value: 'on'
            - name: KONG_NGINX_HTTP_GZIP_DISABLE
              value: msie6
            - name: KONG_NGINX_HTTP_GZIP_VARY
              value: 'on'
            - name: KONG_NGINX_HTTP_GZIP_PROXIED
              value: any
            - name: KONG_NGINX_HTTP_GZIP_COMP_LEVEL
              value: '6'
            - name: KONG_NGINX_HTTP_GZIP_BUFFERS
              value: 16 8k
            - name: KONG_NGINX_HTTP_GZIP_HTTP_VERSION
              value: '1.1'
            - name: KONG_NGINX_HTTP_GZIP_MIN_LENGTH
              value: '256'
            - name: KONG_NGINX_HTTP_GZIP_TYPES
              value: >-
                text/plain text/css application/json application/x-javascript
                text/xml application/xml application/xml+rss text/javascript
                application/vnd.ms-fontobject application/x-font-ttf
                font/opentype image/svg+xml image/x-icon