mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
worker_processes 8;
|
||||
worker_rlimit_nofile 155536;
|
||||
worker_processes 4;
|
||||
worker_rlimit_nofile 400000;
|
||||
worker_shutdown_timeout 10;
|
||||
|
||||
events {
|
||||
worker_connections 32768; # Default: 1024
|
||||
worker_connections 500000; # Default: 1024
|
||||
}
|
||||
|
||||
http {
|
||||
@@ -32,6 +32,7 @@ http {
|
||||
#server localhost:4446;
|
||||
#server localhost:4447;
|
||||
#server localhost:4448;
|
||||
server 10.0.0.4:4441;
|
||||
|
||||
#server 10.0.0.3:4441;
|
||||
server 10.0.0.3:4442;
|
||||
@@ -57,8 +58,13 @@ http {
|
||||
server 10.0.0.3:4441;
|
||||
}
|
||||
upstream backend_db {
|
||||
server [::1]:4441;
|
||||
server 10.0.0.4:4441;
|
||||
#server 10.0.0.3:4441;
|
||||
#server 10.0.0.4;
|
||||
}
|
||||
|
||||
upstream backend_db_dl {
|
||||
server 10.0.0.4;
|
||||
}
|
||||
|
||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHEZONE:10m inactive=60m max_size=400m;
|
||||
@@ -116,8 +122,9 @@ http {
|
||||
if ($request_method = POST) {
|
||||
access_log /etc/nginx/logs/submissions.log user_agent;
|
||||
}
|
||||
#if ($request_method = GET) {
|
||||
#}
|
||||
|
||||
#proxy_read_timeout 6s;
|
||||
#proxy_next_upstream error timeout http_500 http_502;
|
||||
}
|
||||
|
||||
location /api/getTopUsers {
|
||||
@@ -140,8 +147,10 @@ http {
|
||||
location /download/ {
|
||||
#access_log /etc/nginx/logs/download.log no_ip;
|
||||
gzip on;
|
||||
gzip_types text/csv;
|
||||
gzip_comp_level 1;
|
||||
proxy_cache CACHEZONE;
|
||||
proxy_cache_valid 20m;
|
||||
#gzip_types text/csv;
|
||||
#gzip_comp_level 1;
|
||||
|
||||
proxy_pass http://backend_db;
|
||||
#alias /home/sbadmin/sponsor/docker/database-export/;
|
||||
|
||||
Reference in New Issue
Block a user