mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-30 11:28:19 +03:00
Update nginx config
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
worker_processes 8;
|
worker_processes 8;
|
||||||
worker_rlimit_nofile 65536;
|
worker_rlimit_nofile 155536;
|
||||||
worker_shutdown_timeout 10;
|
worker_shutdown_timeout 10;
|
||||||
|
|
||||||
events {
|
events {
|
||||||
worker_connections 432768; # Default: 1024
|
worker_connections 32768; # Default: 1024
|
||||||
}
|
}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
@@ -33,12 +33,15 @@ http {
|
|||||||
#server localhost:4447;
|
#server localhost:4447;
|
||||||
#server localhost:4448;
|
#server localhost:4448;
|
||||||
|
|
||||||
server 10.0.0.3:4441;
|
#server 10.0.0.3:4441;
|
||||||
server 10.0.0.3:4442;
|
server 10.0.0.3:4442;
|
||||||
|
|
||||||
server 10.0.0.5:4441;
|
server 10.0.0.5:4441;
|
||||||
server 10.0.0.5:4442;
|
server 10.0.0.5:4442;
|
||||||
|
|
||||||
|
server 10.0.0.6:4441;
|
||||||
|
server 10.0.0.6:4442;
|
||||||
|
|
||||||
#server 134.209.69.251:80 backup;
|
#server 134.209.69.251:80 backup;
|
||||||
|
|
||||||
#server 116.203.32.253:80 backup;
|
#server 116.203.32.253:80 backup;
|
||||||
@@ -121,6 +124,8 @@ http {
|
|||||||
|
|
||||||
location /api/getTotalStats {
|
location /api/getTotalStats {
|
||||||
proxy_pass http://backend_GET;
|
proxy_pass http://backend_GET;
|
||||||
|
proxy_cache CACHEZONE;
|
||||||
|
proxy_cache_valid 20m;
|
||||||
#return 200 "";
|
#return 200 "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -167,15 +172,24 @@ http {
|
|||||||
root /home/sbadmin/SponsorBlockSite/public-prod;
|
root /home/sbadmin/SponsorBlockSite/public-prod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
listen [::]:443 default_server ssl http2 ipv6only=on;
|
||||||
listen 443 default_server ssl http2; # managed by Certbot
|
listen 443 default_server ssl http2; # managed by Certbot
|
||||||
#listen 443 http3 reuseport;
|
#listen 443 http3 reuseport;
|
||||||
#ssl_protocols TLSv1.2 TLSv1.3;
|
#ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
#listen 80;
|
#listen 80;
|
||||||
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0003/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0001/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0003/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0001/privkey.pem; # managed by Certbot
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
server_name cdnsponsor.ajay.app;
|
server_name cdnsponsor.ajay.app;
|
||||||
@@ -195,11 +209,15 @@ http {
|
|||||||
|
|
||||||
|
|
||||||
listen 443 ssl; # managed by Certbot
|
listen 443 ssl; # managed by Certbot
|
||||||
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0001/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0001/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0001/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0001/privkey.pem; # managed by Certbot
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
access_log off;
|
access_log off;
|
||||||
@@ -212,6 +230,7 @@ http {
|
|||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
} # managed by Certbot
|
} # managed by Certbot
|
||||||
|
|
||||||
|
listen [::]:80 ipv6only=on;
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name sponsor.ajay.app api.sponsor.ajay.app;
|
server_name sponsor.ajay.app api.sponsor.ajay.app;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
@@ -238,13 +257,18 @@ http {
|
|||||||
proxy_pass http://10.0.0.3:8080;
|
proxy_pass http://10.0.0.3:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#listen [::]:443 ssl http2 ipv6only=on;
|
||||||
listen 443 ssl http2; # managed by Certbot
|
listen 443 ssl http2; # managed by Certbot
|
||||||
#listen 443 http3 reuseport;
|
#listen 443 http3 reuseport;
|
||||||
#ssl_protocols TLSv1.2 TLSv1.3;
|
#ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
#listen 80;
|
#listen 80;
|
||||||
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0003/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/sponsor.ajay.app-0001/fullchain.pem; # managed by Certbot
|
||||||
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0003/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/sponsor.ajay.app-0001/privkey.pem; # managed by Certbot
|
||||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user