mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 14:37:17 +03:00
Update nginx config
This commit is contained in:
@@ -14,6 +14,9 @@ http {
|
|||||||
log_format user_agent '[$time_local] '
|
log_format user_agent '[$time_local] '
|
||||||
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
|
'"$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/mime.types;
|
||||||
include /etc/nginx/proxy.conf;
|
include /etc/nginx/proxy.conf;
|
||||||
include /etc/nginx/fastcgi.conf;
|
include /etc/nginx/fastcgi.conf;
|
||||||
@@ -27,6 +30,7 @@ http {
|
|||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Connection "";
|
proxy_set_header Connection "";
|
||||||
access_log off;
|
access_log off;
|
||||||
|
#error_log /etc/nginx/logs/error.log warn;
|
||||||
error_log /dev/null crit;
|
error_log /dev/null crit;
|
||||||
|
|
||||||
upstream backend_GET {
|
upstream backend_GET {
|
||||||
@@ -52,8 +56,8 @@ http {
|
|||||||
server 10.0.0.6:4441;
|
server 10.0.0.6:4441;
|
||||||
server 10.0.0.6:4442;
|
server 10.0.0.6:4442;
|
||||||
|
|
||||||
#server 10.0.0.8:4441;
|
server 10.0.0.9:4441;
|
||||||
#server 10.0.0.8:4442;
|
server 10.0.0.9:4442;
|
||||||
|
|
||||||
#server 134.209.69.251:80 backup;
|
#server 134.209.69.251:80 backup;
|
||||||
|
|
||||||
@@ -127,7 +131,8 @@ http {
|
|||||||
#return 200 "[]";
|
#return 200 "[]";
|
||||||
proxy_pass http://backend_$request_method;
|
proxy_pass http://backend_$request_method;
|
||||||
#proxy_cache CACHEZONE;
|
#proxy_cache CACHEZONE;
|
||||||
#proxy_cache_valid 2m;
|
#proxy_cache_valid 30s;
|
||||||
|
#limit_req zone=mylimit;
|
||||||
|
|
||||||
#access_log /etc/nginx/logs/download.log no_ip;
|
#access_log /etc/nginx/logs/download.log no_ip;
|
||||||
gzip on;
|
gzip on;
|
||||||
|
|||||||
Reference in New Issue
Block a user