limit req
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
limit_req_zone $binary_remote_addr zone=paste_limit:10m rate=10r/s;
|
||||
|
||||
server {
|
||||
|
||||
listen 8080;
|
||||
server_name paste.linuxiarz.pl;
|
||||
set $base /var/www/paste.linuxiarz.pl;
|
||||
@@ -52,6 +55,7 @@ server {
|
||||
error_log /var/log/angie/paste.linuxiarz.pl.error.log warn;
|
||||
|
||||
status_zone paste.linuxiarz.pl_frontend;
|
||||
limit_req zone=paste_limit burst=20 nodelay;
|
||||
|
||||
location / {
|
||||
proxy_pass http://varnish/;
|
||||
|
||||
Reference in New Issue
Block a user