84 lines
2.1 KiB
Plaintext
84 lines
2.1 KiB
Plaintext
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;
|
|
}
|
|
|
|
# CLEARNET
|
|
server {
|
|
access_log /var/log/nginx/inv.access.log limited;
|
|
error_log /var/log/nginx/inv.error.log;
|
|
server_name inv.nadeko.net;
|
|
include configs/general.conf;
|
|
include configs/robotsNone.conf;
|
|
# SECURITY HEADERS ADDED BY Invidious
|
|
# include configs/security.conf;
|
|
|
|
# The messed up invidious configuration
|
|
include conf.d/inv.zzls.xyz.locations;
|
|
|
|
# QUIC
|
|
include configs/http3.conf;
|
|
|
|
# TOR
|
|
add_header Onion-Location http://inv.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion$request_uri;
|
|
|
|
listen 443 ssl;
|
|
http2 on;
|
|
include configs/ssl.conf;
|
|
}
|
|
|
|
# TOR
|
|
server {
|
|
listen 80;
|
|
server_name inv.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion;
|
|
include configs/general.conf;
|
|
include configs/robotsNone.conf;
|
|
|
|
include conf.d/inv.zzls.xyz.locations;
|
|
}
|
|
|
|
# I2P
|
|
server {
|
|
listen 10051;
|
|
server_name zzlsbhhfvwg3oh36tcvx4r7n6jrw7zibvyvfxqlodcwn3mfrvzuq.b32.i2p;
|
|
include configs/general.conf;
|
|
include configs/robotsNone.conf;
|
|
|
|
include conf.d/inv.zzls.xyz.locations;
|
|
}
|
|
|
|
server {
|
|
set $x "";
|
|
if ($host = inv.zzls.xyz) {
|
|
set $x 1;
|
|
}
|
|
if ($host = inv.nadeko.net) {
|
|
set $x 1;
|
|
}
|
|
if ($x = 1) {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
listen 80;
|
|
server_name inv.zzls.xyz inv.nadeko.net;
|
|
return 404;
|
|
}
|