Updoot
This commit is contained in:
parent
37f5b589a7
commit
4c0ca5a5e0
|
@ -40,7 +40,7 @@ http {
|
|||
default_type application/octet-stream;
|
||||
|
||||
# SSL
|
||||
include configs/sslConfig.conf;
|
||||
include configs/sslConfig.conf;
|
||||
|
||||
# reset timed out connections freeing ram
|
||||
reset_timedout_connection on;
|
||||
|
|
|
@ -37,15 +37,10 @@ server {
|
|||
}
|
||||
|
||||
location ~ (^/videoplayback|^/vi/|^/ggpht/|^/sb/) {
|
||||
proxy_buffering on;
|
||||
proxy_buffers 1024 16k;
|
||||
proxy_set_header X-Forwarded-For "";
|
||||
proxy_hide_header "alt-svc";
|
||||
sendfile_max_chunk 512k;
|
||||
tcp_nopush on;
|
||||
aio threads=default;
|
||||
aio_write on;
|
||||
directio 16m;
|
||||
proxy_hide_header Cache-Control;
|
||||
proxy_hide_header etag;
|
||||
proxy_http_version 1.1;
|
||||
|
@ -58,9 +53,10 @@ server {
|
|||
|
||||
location @fallback {
|
||||
root /etc/nginx/errors;
|
||||
try_files $uri /502.html = 502;
|
||||
try_files $uri /502.html =502;
|
||||
}
|
||||
|
||||
|
||||
# QUIC
|
||||
add_header Alt-Svc 'h3=":443"; ma=86400';
|
||||
|
||||
|
|
|
@ -11,6 +11,12 @@ upstream inv {
|
|||
server 127.0.0.1:40017 max_fails=2 fail_timeout=1s;
|
||||
}
|
||||
|
||||
upstream http3-ytproxy {
|
||||
least_conn;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-1.sock;
|
||||
server unix:/opt/http3-ytproxy/socket/http-proxy-2.sock;
|
||||
}
|
||||
|
||||
# CLEARNET
|
||||
server {
|
||||
access_log /var/log/nginx/inv.access.log limited;
|
||||
|
@ -35,21 +41,17 @@ server {
|
|||
|
||||
location ~ (^/videoplayback|^/vi/|^/ggpht/|^/sb/) {
|
||||
# Woops! Sorry. I don't want to kill my SSD lol!
|
||||
#proxy_buffering on;
|
||||
proxy_buffering off;
|
||||
#proxy_buffers 1024 16k;
|
||||
proxy_set_header X-Forwarded-For "";
|
||||
proxy_hide_header "alt-svc";
|
||||
sendfile_max_chunk 512k;
|
||||
tcp_nopush on;
|
||||
aio threads=default;
|
||||
aio_write on;
|
||||
directio 16m;
|
||||
proxy_hide_header Cache-Control;
|
||||
proxy_hide_header etag;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection keep-alive;
|
||||
proxy_max_temp_file_size 32m;
|
||||
proxy_pass http://unix:/opt/http3-ytproxy/socket/http-proxy.sock;
|
||||
proxy_pass http://http3-ytproxy;
|
||||
add_header Cache-Control private always;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue