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.
This commit is contained in:
parent
21529a0f1d
commit
eba0bf7ccc
3 changed files with 24 additions and 2 deletions
|
@ -20,6 +20,7 @@ services:
|
||||||
- ./denylist.txt:/etc/haproxy/denylist.txt
|
- ./denylist.txt:/etc/haproxy/denylist.txt
|
||||||
- ./key.key:/certs/cert.pem.key
|
- ./key.key:/certs/cert.pem.key
|
||||||
- ./fullchain.pem:/certs/cert.pem
|
- ./fullchain.pem:/certs/cert.pem
|
||||||
|
- videoplayback_proxy:/tmp
|
||||||
ports:
|
ports:
|
||||||
- "${REVERSEPROXY_PUBLIC_PORT}:443/tcp"
|
- "${REVERSEPROXY_PUBLIC_PORT}:443/tcp"
|
||||||
- "${REVERSEPROXY_METRICS_PORT}:10000/tcp"
|
- "${REVERSEPROXY_METRICS_PORT}:10000/tcp"
|
||||||
|
@ -38,6 +39,12 @@ services:
|
||||||
- "127.0.0.1:7070:7070/tcp"
|
- "127.0.0.1:7070:7070/tcp"
|
||||||
- "51023:51023"
|
- "51023:51023"
|
||||||
|
|
||||||
|
ytproxy:
|
||||||
|
<<: *common-elements
|
||||||
|
extends:
|
||||||
|
file: ./proxy-components.yml
|
||||||
|
service: ytproxy
|
||||||
|
|
||||||
companion:
|
companion:
|
||||||
<<: *common-elements
|
<<: *common-elements
|
||||||
extends:
|
extends:
|
||||||
|
@ -56,6 +63,9 @@ services:
|
||||||
file: ./proxy-components.yml
|
file: ./proxy-components.yml
|
||||||
service: watchtower
|
service: watchtower
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
videoplayback_proxy:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy-server:
|
proxy-server:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
|
@ -58,8 +58,7 @@ frontend www
|
||||||
acl health_check path /health
|
acl health_check path /health
|
||||||
http-request return status 200 if health_check
|
http-request return status 200 if health_check
|
||||||
|
|
||||||
# use_backend http3-ytproxy if h || hh
|
use_backend http3-ytproxy if { path_beg /videoplayback } || { path /metrics_ytproxy }
|
||||||
# use_backend companion if c || cc
|
|
||||||
default_backend companion
|
default_backend companion
|
||||||
|
|
||||||
backend http3-ytproxy
|
backend http3-ytproxy
|
||||||
|
|
|
@ -18,6 +18,19 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.enable=true"
|
- "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:
|
gluetun:
|
||||||
image: qmcgaw/gluetun:${GLUETUN_TAG}
|
image: qmcgaw/gluetun:${GLUETUN_TAG}
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Add table
Reference in a new issue