From 1ab15dc03f1cbc1d4b6fc521966905344b34f22c Mon Sep 17 00:00:00 2001 From: Rolling <62690523+rollingafull@users.noreply.github.com> Date: Thu, 13 Jun 2024 21:34:07 +0200 Subject: [PATCH] Update Invidious for use with external clients (#3714) * Update Invidious for use with external clients * Remove INVIDIOUS_DOMAIN --- apps/invidious/config.json | 17 ++++++++++++++++- apps/invidious/docker-compose.arm64.yml | 3 +++ apps/invidious/docker-compose.yml | 3 +++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/apps/invidious/config.json b/apps/invidious/config.json index 43ff8b18..7d455574 100644 --- a/apps/invidious/config.json +++ b/apps/invidious/config.json @@ -6,7 +6,7 @@ "port": 8095, "id": "invidious", "version": "latest", - "tipi_version": 9, + "tipi_version": 10, "categories": ["media", "social"], "description": "Invidious is an open source alternative front-end to YouTube.", "short_desc": "An alternative front-end to YouTube", @@ -19,6 +19,21 @@ "max": 20, "label": "HMAC key", "env_variable": "INVIDIOUS_HMAC_KEY" + }, + { + "type": "text", + "label": "External port", + "hint": "External port for access from proxy", + "placeholder": "80,443", + "required": false, + "env_variable": "INVIDIOUS_EXTERNAL_PORT" + }, + { + "type": "boolean", + "label": "https only", + "hint": "Force for access from https only", + "required": false, + "env_variable": "INVIDIOUS_HTTPS_ONLY" } ], "supported_architectures": ["arm64", "amd64"] diff --git a/apps/invidious/docker-compose.arm64.yml b/apps/invidious/docker-compose.arm64.yml index 13c0cdcb..2ea2517a 100644 --- a/apps/invidious/docker-compose.arm64.yml +++ b/apps/invidious/docker-compose.arm64.yml @@ -19,6 +19,9 @@ services: check_tables: true hmac_key: ${INVIDIOUS_HMAC_KEY} use_innertube_for_captions: true + domain: ${APP_DOMAIN} + external_port: ${INVIDIOUS_EXTERNAL_PORT} + https_only: ${INVIDIOUS_HTTPS_ONLY} healthcheck: test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s diff --git a/apps/invidious/docker-compose.yml b/apps/invidious/docker-compose.yml index d35232bb..ac79bf7e 100644 --- a/apps/invidious/docker-compose.yml +++ b/apps/invidious/docker-compose.yml @@ -20,6 +20,9 @@ services: check_tables: true hmac_key: ${INVIDIOUS_HMAC_KEY} use_innertube_for_captions: true + domain: ${APP_DOMAIN} + external_port: ${INVIDIOUS_EXTERNAL_PORT} + https_only: ${INVIDIOUS_HTTPS_ONLY} healthcheck: test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1 interval: 30s