Compare commits

..

2 commits

Author SHA1 Message Date
4bae2d93cd
update env files 2025-04-24 19:07:13 -04:00
eba0bf7ccc
re add my ytproxy proxy again
Deno doesn't seem to have a very good performance, I have no metrics, but I just feel that this proxy is just better.
2025-04-24 19:04:53 -04:00
5 changed files with 35 additions and 9 deletions

View file

@ -10,14 +10,23 @@ REVERSEPROXY_PUBLIC_PORT=443
REVERSEPROXY_METRICS_PORT=10000
# invidious-companion
VIDEO_CACHE_ON_DISK=true
SERVER_MAX_DASH_RESOLUTION=1080
VERIFY_REQUESTS=true
PORT=8081
FREQUENCY_SECONDS=65
SERVER_SECRET_KEY=""
SERVER_ENCRYPT_QUERY_PARAMS=true
PO_TOKEN_CHECK=true
JOBS_YOUTUBESESSION_FREQUENCY="*/5 * * * *"
MAX_PROXY_RETIRES=2
SERVER_ENABLE_METRICS=true
SERVER_DISABLE_LOGS=true
SERVER_TRACK_UNKNOWN_INNERTUBE_ERRORS=true
# ytproxy
YTPROXY_PORT=8080
# Has to be the same as SERVER_SECRET_KEY
YTPROXY_SECRET_KEY=""
YTPROXY_BLOCK_CHECKER=false
# Gluetun
DOT_PROVIDERS=google

View file

@ -2,11 +2,6 @@
COMPANION_HOST=""
EXVPP_HOST=""
# invidious-companion
SERVER_SECRET_KEY=""
SERVER_BASE_URL=""
EXTERNAL_VIDEOPLAYBACK_PROXY=""
# Gluetun
UPDATER_VPN_SERVICE_PROVIDERS=
VPN_SERVICE_PROVIDER=

View file

@ -20,6 +20,7 @@ services:
- ./denylist.txt:/etc/haproxy/denylist.txt
- ./key.key:/certs/cert.pem.key
- ./fullchain.pem:/certs/cert.pem
- videoplayback_proxy:/tmp
ports:
- "${REVERSEPROXY_PUBLIC_PORT}:443/tcp"
- "${REVERSEPROXY_METRICS_PORT}:10000/tcp"
@ -38,6 +39,12 @@ services:
- "127.0.0.1:7070:7070/tcp"
- "51023:51023"
ytproxy:
<<: *common-elements
extends:
file: ./proxy-components.yml
service: ytproxy
companion:
<<: *common-elements
extends:
@ -56,6 +63,9 @@ services:
file: ./proxy-components.yml
service: watchtower
volumes:
videoplayback_proxy:
networks:
proxy-server:
driver: bridge

View file

@ -58,8 +58,7 @@ frontend www
acl health_check path /health
http-request return status 200 if health_check
# use_backend http3-ytproxy if h || hh
# use_backend companion if c || cc
use_backend http3-ytproxy if { path_beg /videoplayback } || { path /metrics_ytproxy }
default_backend companion
backend http3-ytproxy

View file

@ -18,6 +18,19 @@ services:
labels:
- "com.centurylinklabs.watchtower.enable=true"
ytproxy:
image: git.nadeko.net/fijxu/http3-ytproxy:latest
network_mode: "service:gluetun"
volumes:
- videoplayback_proxy:/tmp
depends_on:
gluetun:
condition: service_healthy
webserver:
condition: service_started
labels:
- "com.centurylinklabs.watchtower.enable=true"
gluetun:
image: qmcgaw/gluetun:${GLUETUN_TAG}
networks: