Zabezpieczenia przed atakami!
limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=2r/s;
This commit is contained in:
parent
9326ad7f9d
commit
0b0f7047f4
|
|
@ -1,3 +1,5 @@
|
||||||
|
limit_req_zone $binary_remote_addr zone=ip_limit:10m rate=2r/s;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
|
|
@ -31,6 +33,9 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
|
||||||
|
# Ograniczenie liczby żądań
|
||||||
|
limit_req zone=ip_limit burst=20 nodelay;
|
||||||
|
|
||||||
proxy_pass http://zaklik_by_node_js:3000;
|
proxy_pass http://zaklik_by_node_js:3000;
|
||||||
|
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue