comment out nginx request limiter

This commit is contained in:
einhornimmond 2024-08-09 10:53:56 +02:00
parent ace43fc187
commit 989a274949
5 changed files with 34 additions and 34 deletions

View File

@ -1,7 +1,7 @@
location /api/$FEDERATION_APIVERSION {
limit_req zone=api burst=60 nodelay;
limit_conn addr 30;
#limit_req zone=api burst=60 nodelay;
#limit_conn addr 30;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;

View File

@ -25,8 +25,8 @@ server {
include /etc/nginx/common/protect_add_header.conf;
# protect from slow loris
client_body_timeout 10s;
client_header_timeout 10s;
#client_body_timeout 10s;
#client_header_timeout 10s;
# protect from range attack (in http header)
if ($http_range ~ "d{9,}") {
@ -54,8 +54,8 @@ server {
# Frontend (default)
location / {
limit_req zone=frontend burst=40 nodelay;
limit_conn addr 40;
#limit_req zone=frontend burst=40 nodelay;
#limit_conn addr 40;
root $PROJECT_ROOT/frontend/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
@ -66,8 +66,8 @@ server {
# Backend
location /graphql {
limit_req zone=backend burst=10 nodelay;
limit_conn addr 10;
#limit_req zone=backend burst=10 nodelay;
#limit_conn addr 10;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -84,8 +84,8 @@ server {
# Backend webhooks
location /hook {
limit_req zone=backend burst=10;
limit_conn addr 10;
#limit_req zone=backend burst=10;
#limit_conn addr 10;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -102,8 +102,8 @@ server {
# Webhook reverse proxy
location /hooks/ {
limit_req zone=backend burst=10;
limit_conn addr 10;
#limit_req zone=backend burst=10;
#limit_conn addr 10;
proxy_pass http://127.0.0.1:9000/hooks/;
access_log $GRADIDO_LOG_PATH/nginx-access.hooks.log gradido_log;
@ -112,8 +112,8 @@ server {
# Admin Frontend
location /admin {
limit_req zone=frontend burst=30 nodelay;
limit_conn addr 40;
#limit_req zone=frontend burst=30 nodelay;
#limit_conn addr 40;
rewrite ^/admin/(.*)$ /$1 break;
root $PROJECT_ROOT/admin/build/;
index index.html;

View File

@ -10,8 +10,8 @@ server {
include /etc/nginx/common/protect_add_header.conf;
# protect from slow loris
client_body_timeout 10s;
client_header_timeout 10s;
#client_body_timeout 10s;
#client_header_timeout 10s;
# protect from range attack (in http header)
if ($http_range ~ "d{9,}") {
@ -38,8 +38,8 @@ server {
# Frontend (default)
location / {
limit_req zone=frontend burst=40 nodelay;
limit_conn addr 40;
#limit_req zone=frontend burst=40 nodelay;
#limit_conn addr 40;
root $PROJECT_ROOT/frontend/build/;
index index.html;
try_files $uri $uri/ /index.html = 404;
@ -50,8 +50,8 @@ server {
# Backend
location /graphql {
limit_req zone=backend burst=10 nodelay;
limit_conn addr 10;
#limit_req zone=backend burst=10 nodelay;
#limit_conn addr 10;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -68,8 +68,8 @@ server {
# Backend webhooks
location /hook {
limit_req zone=backend burst=10;
limit_conn addr 10;
#limit_req zone=backend burst=10;
#limit_conn addr 10;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
@ -86,8 +86,8 @@ server {
# Webhook reverse proxy
location /hooks/ {
limit_req zone=backend burst=10;
limit_conn addr 10;
#limit_req zone=backend burst=10;
#limit_conn addr 10;
proxy_pass http://127.0.0.1:9000/hooks/;
access_log $GRADIDO_LOG_PATH/nginx-access.hooks.log gradido_log;
@ -96,8 +96,8 @@ server {
# Admin Frontend
location /admin {
limit_req zone=frontend burst=30 nodelay;
limit_conn addr 40;
#limit_req zone=frontend burst=30 nodelay;
#limit_conn addr 40;
rewrite ^/admin/(.*)$ /$1 break;
root $PROJECT_ROOT/admin/build/;
index index.html;

View File

@ -24,8 +24,8 @@ server {
include /etc/nginx/common/protect_add_header.conf;
# protect from slow loris
client_body_timeout 10s;
client_header_timeout 10s;
#client_body_timeout 10s;
#client_header_timeout 10s;
# protect from range attack (in http header)
if ($http_range ~ "d{9,}") {
@ -38,8 +38,8 @@ server {
index updating.html;
location / {
limit_req zone=frontend;
limit_conn addr 10;
#limit_req zone=frontend;
#limit_conn addr 10;
try_files /updating.html =404;
}

View File

@ -9,8 +9,8 @@ server {
include /etc/nginx/common/protect_add_header.conf;
# protect from slow loris
client_body_timeout 10s;
client_header_timeout 10s;
#client_body_timeout 10s;
#client_header_timeout 10s;
# protect from range attack (in http header)
if ($http_range ~ "d{9,}") {
@ -23,8 +23,8 @@ server {
index updating.html;
location / {
limit_req zone=frontend;
limit_conn addr 10;
#limit_req zone=frontend;
#limit_conn addr 10;
try_files /updating.html =404;
}