WebDAV plugin - make client_max_body_size a GUI option

  • Basically the title. When using WebDAV to sync files, there is a maximum file size, defined by NGINX option client_max_body_size. Increasing it can be done by inserting the following example in "Extra options":

    Code
    client_max_body_size 2048M;

    This should be a GUI option, since it is essential for a protocol meant for data transfer. If it was a GUI option, it would make it a lot easier for users to identify this being the cause of a problem when trying to upload data via WebDAV.

    • New
    • Official Post

    I think the reason it hasn't been an issue is because webdav will use OMV's default of 25M. OMV also exposes the setting as an environment variable - OMV_NGINX_SITE_WEBGUI_CLIENT_MAX_BODY_SIZE. I would guess most webdav users are uploading docs and pics and don't have an issue. I will think about it but this is kind of why the extra options box is there.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Quote

    25M

    Using WebDAV to sync my camera/pictures folder to my NAS. Obviously any video that's not just 3 seconds will easily go over 25M. If anything, my example is also bullshit, since 2048M still left 3 files not being able to sync, since they were larger than that.


    Also OMV_NGINX_SITE_WEBGUI_CLIENT_MAX_BODY_SIZE is one of those "not documented and you also should not use it if you don't know 100% what you are doing" options. Which I got scolded before when I used such an option.

    • New
    • Official Post

    Also OMV_NGINX_SITE_WEBGUI_CLIENT_MAX_BODY_SIZE is one of those "not documented and you also should not use it if you don't know 100% what you are doing" options. Which I got scolded before when I used such an option.

    Scolded by who? Either way, no one will scold you for using it in the extra options. I said I will think about it. It is just a bunch of work for me and almost no work for you to add it to extra options.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Quote

    Scolded by who?


    Quote

    I said I will think about it

    I appreciate it. I think 25M is way off when comparing normal HTTP(S) interactions vs. file uploads. There has never been a good compromise available in that regard. That's not your fault, just how HTTP(S) has been caught between usage trough browsers, and usage through file transfers.

    • New
    • Official Post

    Thread OneDrive looping with error Since not too long, OneDrive plugin keeps looping after start and fails with the following error:
    (Code, 3 lines)

    The content of the file /var/cache/onedrive/config:

    That was about that particular environment variable for onedrive not about all environment variables.


    I appreciate it. I think 25M is way off when comparing normal HTTP(S) interactions vs. file uploads. There has never been a good compromise available in that regard. That's not your fault, just how HTTP(S) has been caught between usage trough browsers, and usage through file transfers.

    Normally no file is being uploaded to OMV. So, it can default to a low value. I will add it to the plugin. Just give me a few days.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Quote

    Normally no file is being uploaded to OMV

    Depends. Plenty of people installing Nextcloud on their systems, and then mapping the container into their normal URL space. Although they might go the reverse route and use Traefik or Nginx Proxy Manager as their main endpoint.

    • New
    • Official Post

    Depends.

    I meant to OMV itself not something on the OMV system. There actually is no file upload component in OMV anymore. If someone is using nextcloud in a container, the upload limit of OMV's nginx instance wouldn't apply.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Quote

    If someone is using nextcloud in a container, the upload limit of OMV's nginx instance wouldn't apply.

    Is that so when using OMV nginx as reverse proxy, though?

    • New
    • Official Post

    Is that so when using OMV nginx as reverse proxy, though?

    It is difficult to use OMV's nginx as a reverse proxy and I wouldn't recommend doing it. When using NPM or traefik, you aren't useing OMV's nginx as a reverse proxy.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Quote

    It is difficult to use OMV's nginx as a reverse proxy and I wouldn't recommend doing it

    It's very easy, you just drop a file in /etc/nginx/openmediavault-webgui.d/ and have your application running at the normal server URL.


    Quote


    When using NPM or traefik, you aren't useing OMV's nginx

    True, that's why I separated that approach.

    • New
    • Official Post

    It's very easy, you just drop a file in /etc/nginx/openmediavault-webgui.d/ and have your application running at the normal server URL.

    I know how to do it. For the average omv user, it is difficult.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.5 | compose 7.6.5 | cterm 7.8.1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!