summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-01-23 14:28:31 -0600
committerOmar Roth <omarroth@hotmail.com>2019-01-23 14:28:31 -0600
commit71ba0711605a327ca4151b914142b236304dc046 (patch)
tree41c4b54b5e9a1d7699d01662d0c167542cadecf0 /src
parentaf449161ff3e390657d4404a428f618c381bdb72 (diff)
downloadinvidious-71ba0711605a327ca4151b914142b236304dc046.tar.gz
invidious-71ba0711605a327ca4151b914142b236304dc046.tar.bz2
invidious-71ba0711605a327ca4151b914142b236304dc046.zip
Add documentation to config
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/helpers.cr32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr
index d5e233b0..5e28f008 100644
--- a/src/invidious/helpers/helpers.cr
+++ b/src/invidious/helpers/helpers.cr
@@ -1,21 +1,21 @@
class Config
YAML.mapping({
- crawl_threads: Int32,
- channel_threads: Int32,
- feed_threads: Int32,
- video_threads: Int32,
- db: NamedTuple(
- user: String,
- password: String,
- host: String,
- port: Int32,
- dbname: String,
- ),
- dl_api_key: String?,
- https_only: Bool?,
- hmac_key: String?,
- full_refresh: Bool,
- domain: String,
+ crawl_threads: Int32, # Number of threads to use for finding new videos from YouTube (used to popular top page)
+ channel_threads: Int32, # Number of threads to use for crawling videos from channels (for updating subscriptions)
+ feed_threads: Int32, # Number of threads to use for updating feeds
+ video_threads: Int32, # Number of threads to use for updating videos in cache (mostly non-functional)
+ db: NamedTuple( # Database configuration
+ user: String,
+ password: String,
+ host: String,
+ port: Int32,
+ dbname: String,
+ ),
+ dl_api_key: String?, # DetectLanguage API Key (used to filter non-English results from top page), mostly non-functional
+ https_only: Bool?, # Used to tell Invidious it is behind a proxy, so links to resources should be https://
+ hmac_key: String?, # HMAC signing key for CSRF tokens
+ full_refresh: Bool, # Used for crawling channels: threads should check all videos uploaded by a channel
+ domain: String, # Domain to be used for links to resources on the site where an absolute URL is required
})
end