Welcome to Centmin Mod Community
Register Now

Nginx How to limit UPLOAD Speed on Nginx?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by rdan, Jan 21, 2018.

  1. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    3:30 PM
    Mainline
    10.2
    limit_rate works fine with Download Speed (Server > Client).
    But doesn't work with Upload Speed (Client > Server).


    Only possible way is using this 4 years old module:
    Upload | NGINX
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what usage case you have that requires this ?
     
  3. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    3:30 PM
    Mainline
    10.2
    I have this Upload/File Sharing site.
    With Traditional HDD not SSD.
    So I want to limit upload speed/files written on the disk simultaneously to avoid stressing it.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    5:30 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Actually that upload module you linked to is 9yrs old Branches · vkholodkov/nginx-upload-module · GitHub so definitely not an option. Don't know of one for nginx off the top of my head unfortunately. Maybe something you need to code at the script coding level i.e. PHP