diff options
author | sils <sils@sils.li> | 2024-02-19 20:19:34 +0100 |
---|---|---|
committer | sils <sils@sils.li> | 2024-02-19 20:19:34 +0100 |
commit | e5a029e0ffde4599b995dd0ea9afc80f8f863180 (patch) | |
tree | f794bbd1e37fe0a2416e2aff49e4d96f3dfdb2cd | |
parent | build(flake): update invidious-router-flake (diff) | |
download | nixos-server-e5a029e0ffde4599b995dd0ea9afc80f8f863180.tar.gz nixos-server-e5a029e0ffde4599b995dd0ea9afc80f8f863180.zip |
feat(system/services/invidious-router): add configuration
Diffstat (limited to '')
-rw-r--r-- | system/services/invidious-router/default.nix | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/system/services/invidious-router/default.nix b/system/services/invidious-router/default.nix index ef1dde3..b65d51e 100644 --- a/system/services/invidious-router/default.nix +++ b/system/services/invidious-router/default.nix @@ -1,6 +1,33 @@ {...}: { services.invidious-router = { enable = true; - domain = "invidious-router.sils.li"; + configuration = { + app = { + listen = "0.0.0.0:8050"; + enable_youtube_fallback = false; + reload_instance_list_interval = "60s"; + instances = ["https://invdious.vhack.eu"]; + }; + api = { + enabled = true; + url = "https://api.invdious.io/instances.json"; + filter_regions = true; + allowed_regions = ["AT" "DE" "CH"]; + }; + healthcheck = { + path = "/"; + allowed_status_codes = ["200"]; + timeout = "1s"; + interval = "10s"; + filter_by_response_time = { + enabled = true; + qty_of_top_results = 4; + }; + }; + }; + nginx = { + enable = true; + domain = "invidious-router.sils.li"; + }; }; } |