January 17, 20251 yr It seems the Authlimit issue is common where Windows sends a lot of requests and Unraid blocks access for a while. I found this post about a fix I'm hoping someone can walk me through how to apply it. I don't know where or how to put in the fix. Thanks in advance.
January 18, 20251 yr Community Expert are you using npm the docker or unraids nginx out going prox manger. as these nginx configs will be different in terms of implementations.
January 18, 20251 yr Community Expert as the fix is this script via the user script plugin to add this to unraids nginx config... BUT THIS WILL OLNY DO THIS FOR UNARIDS nginx application... # Fix NGINX limits to stop stupid log messages sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf /usr/sbin/nginx -s reload
January 19, 20251 yr Author are you using npm the docker or unraids nginx out going prox manger? @bmartino1 I'm not sure, I'm trying to fix the problem where I try to access my unraid share via Windows and it tells gives me an error about bad credentials, but eventually lets me in. When I open the log from the unraid gui I see multiple entries like below. Jan 18 12:17:53 EDI nginx: 2025/01/18 12:17:53 [error] 10715#10715: *2044622 limiting requests, excess: 20.813 by zone "authlimit", client: 192.168.1.44, server: , request: "PROPFIND /login HTTP/1.1", host: "192.168.1.60" I haven't added any dockers to my system, I use default setup with folder shares and my Unraid its purely a file server
January 19, 20251 yr Community Expert that appears to be nginx on unraid host. you should install the user script plugin. Make a new script and cron run at first array start. # Fix NGINX limits to stop stupid log messages sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf /usr/sbin/nginx -s reload That seems like that bug as this will look find the line that is set to 20 and 30 in the 2 configs and increase them to 1 min...
February 5, 20251 yr On 1/19/2025 at 2:36 AM, bmartino1 said: that appears to be nginx on unraid host. you should install the user script plugin. Make a new script and cron run at first array start. # Fix NGINX limits to stop stupid log messages sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/m;g" /etc/nginx/nginx.conf sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf /usr/sbin/nginx -s reload That seems like that bug as this will look find the line that is set to 20 and 30 in the 2 configs and increase them to 1 min... I had to add a 10sec wait as the files were not there yet: # Fix NGINX limits # sed cannot find the file when executed directly, waiting for 10 secs first sleep 10 sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/s;g" /etc/nginx/nginx.conf sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf /usr/sbin/nginx -s reload
February 5, 20251 yr Author @tazman Is this everything I need to do? I installed user script and copy pasted your script, sce screenshots What schedule should it be on?
February 5, 20251 yr Community Expert Solution 8 minutes ago, Whiskers said: @tazman Is this everything I need to do? I installed user script and copy pasted your script, sce screenshots What schedule should it be on? yes I have found that I need to wait 20 seconds after the array has auto started via disk settings for everything to be happy be fore making system services changes. at first array start is the corn for this script to edit Nginx and add the data. # Fix NGINX limits # sed cannot find the file when executed directly, waiting for 10 secs first sleep 10 sed -i "s;zone=authlimit:1m rate=30r/m;zone=authlimit:1m rate=60r/s;g" /etc/nginx/nginx.conf sed -i "s;zone=authlimit burst=20;zone=authlimit burst=60;g" /etc/nginx/conf.d/locations.conf /usr/sbin/nginx -s reload edit nginx at your own risk...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.