Add proxy_domains to config/config example

This commit is contained in:
11tuvork28 2023-02-23 16:12:07 +01:00
parent 0995e0447c
commit 1c87da7050
2 changed files with 18 additions and 0 deletions

View File

@ -97,6 +97,22 @@ db:
## ##
domain: 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 ## Tell Invidious that it is behind a proxy that provides only
## HTTPS, so all links must use the https:// scheme. This ## HTTPS, so all links must use the https:// scheme. This

View File

@ -88,6 +88,8 @@ class Config
property hmac_key : String? property hmac_key : String?
# Domain to be used for links to resources on the site where an absolute URL is required # Domain to be used for links to resources on the site where an absolute URL is required
property domain : String? 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) # Subscribe to channels using PubSubHubbub (requires domain, hmac_key)
property use_pubsub_feeds : Bool | Int32 = false property use_pubsub_feeds : Bool | Int32 = false
property popular_enabled : Bool = true property popular_enabled : Bool = true