mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-14 00:55:10 +00:00
chore: add development compose and configs
This commit is contained in:
62
docker/config.yml
Normal file
62
docker/config.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
channel_threads: 0
|
||||
log_level: Info
|
||||
colorize_logs: true
|
||||
database_url: postgres://kemal:kemal@pgbouncer:6432/invidious
|
||||
redis_url: tcp://valkey:6379
|
||||
https_only: true
|
||||
domain: inv.nadeko.net
|
||||
use_pubsub_feeds: false
|
||||
popular_enabled: true
|
||||
captcha_enabled: true
|
||||
login_enabled: true
|
||||
registration_enabled: true
|
||||
statistics_enabled: true
|
||||
external_port: 443
|
||||
cache_annotations: true
|
||||
hsts: true
|
||||
enable_user_notifications: true
|
||||
modified_source_code_url: https://git.nadeko.net/Fijxu/invidious
|
||||
force_resolve: ipv4
|
||||
pool_size: 100
|
||||
use_innertube_for_captions: true
|
||||
|
||||
instance_maintainer_email: admin@nadeko.net
|
||||
footer_instance_donate_link: "https://nadeko.net/donate"
|
||||
footer_instance_section_custom_fields:
|
||||
- ["Tor", "http://inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion"]
|
||||
- ["Backend information / Información de la Instancia", "https://nadeko.net/invidious-instance-information/"]
|
||||
- ["Service Status / Estado del servicio", "https://status.nadeko.net/status/invidious"]
|
||||
- ["REPORT ISSUES HERE!", "https://git.nadeko.net/Fijxu/invidious/issues"]
|
||||
- ["nadeko.net Matrix Room", "https://matrix.to/#/#nadeko.net:tchncs.de"]
|
||||
|
||||
# inv.nadeko.net only options
|
||||
pubsub_domain: https://inv.nadeko.net
|
||||
max_dash_resolution: 1080
|
||||
|
||||
jobs:
|
||||
refresh_channels:
|
||||
enable: false
|
||||
subscribe_to_feeds:
|
||||
enable: false
|
||||
|
||||
default_user_preferences:
|
||||
region: CL
|
||||
dark_mode: dark
|
||||
autoplay: true
|
||||
quality: dash
|
||||
save_player_pos: true
|
||||
extend_desc: true
|
||||
#local: false
|
||||
|
||||
server_id_cookie_name: "COMPANION_IDD"
|
||||
|
||||
video_cache:
|
||||
enabled: true
|
||||
backend: 1
|
||||
|
||||
force_local: true
|
||||
check_backends_interval: 3
|
||||
max_popular_results: 100
|
||||
disable_video_downloads: true
|
||||
|
||||
hmac_key: "blahblahthisisnotarealkeyusedonproductionthisisjustfortesting123"
|
||||
59
docker/haproxy.cfg
Normal file
59
docker/haproxy.cfg
Normal file
@@ -0,0 +1,59 @@
|
||||
# Notes:
|
||||
# Why I deleted `balance roundrobin`:
|
||||
#
|
||||
# https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4-balance:
|
||||
# The load balancing algorithm of a backend is set to roundrobin when no other
|
||||
# algorithm, mode nor option have been set. The algorithm may only be set once
|
||||
# for each backend.
|
||||
#
|
||||
# ---
|
||||
# Why I removed `option http-keep-alive`: This is on by default
|
||||
|
||||
# https://git.nadeko.net/Fijxu/docker-compose-configs/src/branch/master/invidious/invidious-all/haproxy.cfg
|
||||
|
||||
global
|
||||
# This because haproxy is dumb and likes to use the maxconnection (somaxconn) from the kernel and that is super mega huge making haproxy oom
|
||||
maxconn 8192
|
||||
|
||||
resolvers docker
|
||||
# To be able to use multiple replicas of invidious
|
||||
# using domains
|
||||
nameserver dns1 127.0.0.11:53
|
||||
|
||||
defaults
|
||||
mode http
|
||||
# https://www.haproxy.com/documentation/haproxy-configuration-tutorials/service-reliability/retries/
|
||||
# Use another server if one takes too long to reply
|
||||
retries 4
|
||||
option redispatch
|
||||
timeout client 60s
|
||||
timeout connect 5s
|
||||
# The default timeout of http request on invidious is 10 seconds.
|
||||
# If this is less than 10 seconds, the reverse proxy may return
|
||||
# "503 service unavailable", not letting invidious respond to
|
||||
# the client.
|
||||
timeout server 60s
|
||||
timeout queue 30s
|
||||
# https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4.2-http-reuse
|
||||
http-reuse safe
|
||||
|
||||
# Prometheus for graphs
|
||||
frontend prometheus
|
||||
bind *:8404
|
||||
mode http
|
||||
http-request use-service prometheus-exporter if { path /metrics }
|
||||
no log
|
||||
|
||||
frontend invidious
|
||||
bind *:8001
|
||||
|
||||
# Use captcha only for /watch path
|
||||
use_backend captcha if { path /watch } || { path /watch/ } || { path_beg /.well-known/.git.gammaspectra.live }
|
||||
default_backend invidious
|
||||
|
||||
backend captcha
|
||||
server srv1 captcha:4000 check resolvers docker init-addr libc,none
|
||||
|
||||
backend invidious
|
||||
server-template srv 4 invidious:3000 check resolvers docker init-addr libc,none
|
||||
|
||||
10
docker/valkey.conf
Normal file
10
docker/valkey.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
unixsocket /tmp/valkey.sock
|
||||
unixsocketperm 777
|
||||
|
||||
maxmemory 2048mb
|
||||
maxmemory-policy volatile-lfu
|
||||
|
||||
# Disable AOF
|
||||
appendonly no
|
||||
# Disable RDB
|
||||
save ""
|
||||
Reference in New Issue
Block a user