nginx配置增大上传文件限制

  如果访问地址是通过nginx转发配置的

  server{

    ... ...

    client_max_body_size 50M;

    ... ...

  }

ingress配置增大上传文件限制

  如果访问地址是通过k8s里ingress转发配置的

  apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: livevodadmin
    namespace: gymdev
    annotations:
      nginx.ingress.kubernetes.io/proxy-body-size: 500m
  spec:
    rules:
    - host: livevodadmin.xxx.cn
      http:
        paths:
        - backend:
            serviceName: livevodadmin-service
            servicePort: 80
          path: /
        - backend:
            serviceName: gymtv-service
            servicePort: 8080
          path: /gymTV

05-11 13:13