Update nginx config

This commit is contained in:
Ajay Ramachandran
2022-01-16 19:03:02 +01:00
parent ea196e84f1
commit 732eeed41d

View File

@@ -14,6 +14,9 @@ http {
log_format user_agent '[$time_local] '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
#limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
#limit_req_log_level warn;
include /etc/nginx/mime.types;
include /etc/nginx/proxy.conf;
include /etc/nginx/fastcgi.conf;
@@ -27,6 +30,7 @@ http {
proxy_http_version 1.1;
proxy_set_header Connection "";
access_log off;
#error_log /etc/nginx/logs/error.log warn;
error_log /dev/null crit;
upstream backend_GET {
@@ -52,8 +56,8 @@ http {
server 10.0.0.6:4441;
server 10.0.0.6:4442;
#server 10.0.0.8:4441;
#server 10.0.0.8:4442;
server 10.0.0.9:4441;
server 10.0.0.9:4442;
#server 134.209.69.251:80 backup;
@@ -127,7 +131,8 @@ http {
#return 200 "[]";
proxy_pass http://backend_$request_method;
#proxy_cache CACHEZONE;
#proxy_cache_valid 2m;
#proxy_cache_valid 30s;
#limit_req zone=mylimit;
#access_log /etc/nginx/logs/download.log no_ip;
gzip on;