The best config in the world
This commit is contained in:
parent
4c9a11279f
commit
64fc6cc77e
|
@ -4,7 +4,7 @@ limit_req_zone $binary_remote_addr zone=4get:10m rate=4r/s;
|
|||
server {
|
||||
access_log /var/log/nginx/4get.access.log limited;
|
||||
error_log /var/log/nginx/4get.error.log;
|
||||
server_name 4get.zzls.xyz 4get.nadeko.net;
|
||||
server_name 4get.zzls.xyz 4get.nadeko.net 4getus.zzls.xyz 4getus.nadeko.net;
|
||||
root /var/www/4get-zzls;
|
||||
include configs/general.conf;
|
||||
include configs/robotsNone.conf;
|
||||
|
@ -58,7 +58,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
}
|
||||
|
||||
# TOR
|
||||
|
@ -92,9 +91,15 @@ server {
|
|||
if ($host = 4get.nadeko.net) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($host = 4getus.nadeko.net) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($host = 4getus.zzls.xyz) {
|
||||
set $x 1;
|
||||
}
|
||||
if ($x = 1) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
listen 80;
|
||||
server_name 4get.zzls.xyz 4get.nadeko.net;
|
||||
server_name 4get.zzls.xyz 4get.nadeko.net 4getus.zzls.xyz 4getus.nadeko.net;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ server {
|
|||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
|
||||
fastcgi_pass php-fpm;
|
||||
fastcgi_intercept_errors on;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
|
@ -38,20 +38,13 @@ server {
|
|||
listen 443 ssl;
|
||||
http2 on;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/ayaya.beauty/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/ayaya.beauty/privkey.pem;
|
||||
include configs/sslConfig.conf;
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
if ($host = ayaya.beauty) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
listen 80;
|
||||
server_name ayaya.beauty;
|
||||
return 404;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
}
|
||||
|
||||
# TOR
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
upstream debuginv{
|
||||
server 127.0.0.1:40050 max_fails=2 fail_timeout=2s;
|
||||
}
|
||||
|
||||
upstream http3-ytproxy-debug {
|
||||
server 127.0.0.1:8080 max_fails=2 fail_timeout=1s;
|
||||
}
|
||||
|
||||
# CLEARNET
|
||||
server {
|
||||
access_log /var/log/nginx/debuginv.access.log;
|
||||
|
@ -17,7 +9,7 @@ server {
|
|||
# include configs/security.conf;
|
||||
|
||||
location @upstream {
|
||||
proxy_pass http://debuginv;
|
||||
proxy_pass http://inv-debug;
|
||||
include configs/proxy.conf;
|
||||
limit_rate 1000k;
|
||||
# Disable buffering and cache so i don't kill my
|
||||
|
@ -110,7 +102,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
|
||||
|
@ -127,4 +118,5 @@ server {
|
|||
}
|
||||
listen 80;
|
||||
server_name debuginv.zzls.xyz;
|
||||
return 404;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
ssl_certificate /etc/letsencrypt/live/i.ayaya.beauty/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/i.ayaya.beauty/privkey.pem;
|
||||
include configs/sslConfig.conf;
|
||||
|
||||
}
|
||||
|
||||
|
@ -29,9 +26,7 @@ server {
|
|||
if ($host = i.ayaya.beauty) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
listen 80;
|
||||
server_name i.ayaya.beauty;
|
||||
return 404;
|
||||
|
||||
}
|
||||
|
|
|
@ -1,23 +1,7 @@
|
|||
limit_req_zone $binary_remote_addr zone=invidious-apirl:1m rate=40r/s;
|
||||
|
||||
upstream inv {
|
||||
server 127.0.0.1:10011 max_fails=2 fail_timeout=2s;
|
||||
server 127.0.0.1:10012 max_fails=2 fail_timeout=2s;
|
||||
server 127.0.0.1:10013 max_fails=2 fail_timeout=2s;
|
||||
}
|
||||
# Just add more lol
|
||||
upstream http3-ytproxy {
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-1.sock max_fails=2 fail_timeout=1s;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-2.sock max_fails=2 fail_timeout=1s;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-3.sock max_fails=2 fail_timeout=1s;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-4.sock max_fails=2 fail_timeout=1s;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-5.sock max_fails=2 fail_timeout=1s;
|
||||
}
|
||||
|
||||
server {
|
||||
server_name inv.zzls.xyz;
|
||||
rewrite ^ https://inv.nadeko.net$request_uri? permanent;
|
||||
include configs/ssl.conf;
|
||||
listen 443 ssl;
|
||||
}
|
||||
|
||||
|
@ -42,7 +26,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
}
|
||||
|
||||
# TOR
|
||||
|
|
|
@ -27,7 +27,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
server {
|
||||
server_name luna.zzls.xyz;
|
||||
rewrite ^ https://luna.nadeko.net$request_uri? permanent;
|
||||
include configs/ssl.conf;
|
||||
listen 443 ssl;
|
||||
}
|
||||
|
||||
|
@ -14,6 +13,7 @@ server {
|
|||
include configs/general.conf;
|
||||
include configs/security.conf;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Content-Type application/octet-stream;
|
||||
|
||||
location /_h5ai/private {
|
||||
return 403;
|
||||
|
@ -25,7 +25,7 @@ server {
|
|||
return 404;
|
||||
}
|
||||
fastcgi_param HTTP_PROXY "";
|
||||
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
|
||||
fastcgi_pass php-fpm;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
@ -35,7 +35,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
server {
|
||||
|
|
|
@ -22,7 +22,7 @@ server {
|
|||
#}
|
||||
|
||||
location ~ ^(/_matrix|/_synapse/client|/health) {
|
||||
proxy_pass http://127.0.0.1:10020;
|
||||
proxy_pass http://matrix;
|
||||
include configs/proxy.conf;
|
||||
client_max_body_size 64M;
|
||||
}
|
||||
|
@ -33,7 +33,6 @@ server {
|
|||
listen 443 ssl reuseport;
|
||||
listen 8448 ssl default_server reuseport;
|
||||
listen 8448 quic default_server reuseport;
|
||||
include configs/ssl.conf;
|
||||
http2 on;
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
server {
|
||||
|
|
|
@ -6,7 +6,7 @@ server {
|
|||
include configs/robotsNone.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40002/;
|
||||
proxy_pass http://rimgo;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
|
||||
|
@ -27,7 +26,7 @@ server {
|
|||
include configs/robotsNone.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40002/;
|
||||
proxy_pass http://rimgo;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +39,7 @@ server {
|
|||
include configs/robotsNone.conf;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:40002/;
|
||||
proxy_pass http://rimgo;
|
||||
include configs/proxy.conf;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
server {
|
||||
|
|
|
@ -15,7 +15,6 @@ server {
|
|||
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
include configs/ssl.conf;
|
||||
|
||||
}
|
||||
server {
|
||||
|
|
|
@ -38,7 +38,7 @@ http {
|
|||
#default_type application/octet-stream;
|
||||
|
||||
# SSL
|
||||
include configs/sslConfig.conf;
|
||||
include configs/ssl.conf;
|
||||
|
||||
# reset timed out connections freeing ram
|
||||
reset_timedout_connection on;
|
||||
|
@ -67,7 +67,8 @@ http {
|
|||
# Maps
|
||||
include /etc/nginx/snippets/maps.conf;
|
||||
include /etc/nginx/snippets/poop.conf;
|
||||
|
||||
|
||||
limit_conn_zone $binary_remote_addr zone=addr:10m;
|
||||
include /etc/nginx/configs/upstreams.conf;
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue