2021-01-28 22:04:37 +01:00
---
title: Configuration
description:
published: true
2021-02-25 19:14:04 +01:00
date: 2021-02-25T18:04:44.062Z
2021-01-28 22:04:37 +01:00
tags:
2021-03-14 18:15:53 +01:00
editor: markdown
2021-01-28 22:04:37 +01:00
dateCreated: 2021-01-28T20:39:13.768Z
---
2019-01-24 18:35:02 +01:00
### What can be configured and what are these configuration options?
2020-08-21 14:35:44 +02:00
The configuration file is located at [invidious/config/config.yml ](https://github.com/iv-org/invidious/blob/master/config/config.yml ).
2019-01-24 18:35:02 +01:00
2019-05-19 00:21:46 +02:00
- `channel_threads` (default `1` ) Number of threads to use for crawling videos from channels
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `feed_threads` (default `1` ) Number of threads to use for refreshing subscription feeds
2019-01-24 18:35:02 +01:00
```
db:
user: kemal # your database user
password: kemal # your database password
host: localhost # database host
port: 5432 # postgres port
```
2019-05-19 00:21:46 +02:00
- `full_refresh` (default `false` ) When crawling channel videos, threads should refresh *all* videos uploaded by a channel
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `https_only` (default `false` ) Used to tell Invidious it is accessed via https, set to `true` if you have for example a reverse proxy with a ssl certificate
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `hmac_key` (default `nil` ) Signing key for CSRF tokens (when `nil` is randomly generated on startup, can be any random string)
2019-03-08 18:48:16 +01:00
2019-12-16 00:48:23 +01:00
- `domain` (default `nil` ) Domain to use for providing `self` links in RSS feeds, issuing cookies, etc.
2019-05-19 00:21:46 +02:00
- `use_pubsub_feeds` (default `false` ) Use server-side notifications provided by [YouTube ](https://developers.google.com/youtube/v3/guides/push_notifications ). Requires `domain` and `hmac_key` to be set
2019-03-08 18:48:16 +01:00
2020-12-19 21:28:16 +01:00
- `default_home` (default `"Popular"` ) Default home page **Moved into `default_user_preferences`**
2019-03-08 18:48:16 +01:00
2020-12-19 21:28:16 +01:00
- `feed_menu` (default `["Popular", "Trending", "Subscriptions"]` ) Order of tabs on feed menu **Moved into `default_user_preferences`**
2019-03-08 18:48:16 +01:00
2019-12-16 00:48:23 +01:00
- `captcha_enabled` (default `true` ) Determine if CAPTCHA should be required for registration
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `login_enabled` (default `true` ) Whether users should be able to login
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `registration_enabled` (default `true` ) Whether new users should be able to register
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `statistics_enabled` (default `false` ) Whether statistics should be available from `/api/v1/stats`
2019-03-08 18:48:16 +01:00
2019-05-19 00:21:46 +02:00
- `admins` (default `[]` ) List of user IDs that have access to administrator preferences
2019-03-08 18:48:16 +01:00
2019-06-20 03:03:41 +02:00
- `external_port` (default `nil` ) Invidious should supply links to a different port (if running behind a proxy, for example). PubSub notifications (if enabled) will also be sent to this port
2019-05-06 04:18:15 +02:00
2020-08-21 14:35:44 +02:00
- `default_user_preferences` (default [`ConfigPreferences` ](https://github.com/iv-org/invidious/blob/master/src/invidious/helpers/helpers.cr#L127 )) Default preferences to use for new and unregistered users, see [#415 ](https://github.com/iv-org/invidious/issues/415 )
2019-05-06 04:18:15 +02:00
2019-05-19 00:21:46 +02:00
- `dmca_content` (default `[]` ) For compliance with DMCA requests, disables download widget for list of video IDs
2019-05-06 04:18:15 +02:00
2019-05-19 00:21:46 +02:00
- `check_tables` (default `false` ) Check table integrity, automatically try to add any missing columns, create columns, etc.
2019-05-06 04:18:15 +02:00
2019-05-19 00:21:46 +02:00
- `cache_annotations` (default `false` ) Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards
2019-05-06 04:18:15 +02:00
2019-05-19 00:21:46 +02:00
- `banner` (default `nil` ) Optional banner to be displayed along top of page for announcements, etc.
2019-07-08 19:25:26 +02:00
- `hsts` (default `true` ) For HTTP Strict Transport Security
2019-10-30 18:31:23 +01:00
- `disable_proxy` (default `false` ) Disable proxy option serverwide (options: 'dash', 'livestreams', 'downloads', 'local')
2020-08-21 14:35:44 +02:00
- `force_resolve` (default `nil` ) Force IPv4 or IPv6 connection to Google (options: 'ipv4', 'ipv6') see [#811 ](https://github.com/iv-org/invidious/issues/811 )
2019-10-30 18:35:06 +01:00
- `pool_size` (default `100` ) Pool size for HTTP connections for youtube.com and ytimg.com (each domain has a separate pool of `pool_size` )
- `admin_email` (default `omarroth@protonmail.com` ) Email provided to users for bug reports
2019-12-16 00:48:23 +01:00
- `port` (default `3000` ) Default port for HTTP server
- `host_binding` (default `0.0.0.0` ) Default host for HTTP server
- `cookies` (default ``) Cookies to be used when connecting to YouTube
2020-12-19 21:28:16 +01:00
- `captcha_key` (default `nil` ) [Anti-Captcha ](https://anti-captcha.com/ ) API key for solving YouTube CAPTCHAs, see [#886 ](https://github.com/iv-org/invidious/issues/886 ).
2021-04-02 14:53:37 +02:00
- `popular_enabled` (default `false` ) Whether to display popular videos of the instance.