mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 06:27:10 +03:00
Update nginx config
This commit is contained in:
@@ -13,6 +13,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;
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user