From eba0bf7ccc3816ccf74f22b282a6ababe493c76f Mon Sep 17 00:00:00 2001 From: Fijxu Date: Thu, 24 Apr 2025 19:04:53 -0400 Subject: [PATCH] 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. --- docker-compose.yml | 10 ++++++++++ haproxy.cfg | 3 +-- proxy-components.yml | 13 +++++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index deac6e8..7747b05 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/haproxy.cfg b/haproxy.cfg index 29f4e90..cb80147 100644 --- a/haproxy.cfg +++ b/haproxy.cfg @@ -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 diff --git a/proxy-components.yml b/proxy-components.yml index b7eb89d..b5a9a97 100644 --- a/proxy-components.yml +++ b/proxy-components.yml @@ -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: