I am new to setting up a Jupyterhub. We followed the documentation to install jupyterhub in kubernetes via helm. I have been reading that there is no feature in jupyterhub to disable the feature of download files in jupyternotebooks launched. I saw in some forums that this is possible via nginx to route all "/files" to a blackhole. However, it did not work. Below is my configuration.
ingress:
  enabled: true
  host:
    - myhost.example.comapiVersion: v1
kind: Service
metadata:
  name: default-http-backend
spec:
  selector:
    app: default-http-backend
  ports:
    - protocol: TCP
      port: 80apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: jupyterhub-ingress
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/use-regex: "true"
spec:
  rules:
    - host: myhost.example.com
      http:
        paths:
          - path: /user/(*.)/files/
            backend:
              serviceName: default-http-backend
              servicePort: 80
          - path: /
            backend:
              serviceName: proxy-public
              servicePort: 80