Server side disabling of extensions and widgets?

Hi Team,

I would like to disable uploads to both Notebook and Lab.

I have discovered that this can be done on a per-user basis by adding a section that looks like this:

    "toolbar": [
        {
            "name": "uploader",
            "disabled": true
        }
    ]

to either ~/.jupyter/lab/user-settings/\@jupyter-notebook/tree-extension/widget.jupyterlab-settings for Notebook or ~/.jupyter/lab/user-settings/\@jupyterlab/filebrowser-extension/widget.jupyterlab-settings for Labs.

Ideally, I’d like to do this once, rather than per-user.

Are the settings I need to configure something like this? It isn’t clear from the documentation how to turn the above into the below format.

c.NotebookApp.widgets.filebrowser-extension.toolbar.uploader.disabled=true
c.ServerApp.widgets.tree-extension.toolbar.uploader.disabled=true

Thanks!