diff --git a/config/config.example.yml b/config/config.example.yml index 8abe1b9e..3e9865a8 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -97,6 +97,22 @@ db: ## domain: +## +## A list of domains where external proxy servers. This is used +## to build the urls used for proxing videos. +## When none is set invidious will be used for proxiying. +## This generally only needs to be set for bigger instances, +## a example proxy url would be like ['proxy.example.com']. +## Using a list urls might look like this: +## ['proxy-eu1.example.com','proxy-eu2.example.com'] +## Invidious would then choose at random which request gets one +## of the proxy servers +## +## Accepted values: a list of fully qualified domain names (FQDN) +## Default: [""] +## +proxy_domains: [""] + ## ## Tell Invidious that it is behind a proxy that provides only ## HTTPS, so all links must use the https:// scheme. This diff --git a/src/invidious/config.cr b/src/invidious/config.cr index 9fc58409..edee6d33 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -88,6 +88,8 @@ class Config property hmac_key : String? # Domain to be used for links to resources on the site where an absolute URL is required property domain : String? + # Domain list of external proxy servers to be used, when multiple are set they will be randomly choosen + property proxy_domains : Array(String) = [] of String # Subscribe to channels using PubSubHubbub (requires domain, hmac_key) property use_pubsub_feeds : Bool | Int32 = false property popular_enabled : Bool = true