From 53f4460babcc1b9a3639feb3281614b6cb454cb2 Mon Sep 17 00:00:00 2001 From: Stavros Date: Sun, 15 Oct 2023 16:13:29 +0300 Subject: [PATCH] Add arm64 support to viewtube. (#1379) * Add arm64 support. * Update config.json --- apps/viewtube/config.json | 2 +- apps/viewtube/docker-compose.arm64.yml | 66 ++++++++++++++++++++++++++ apps/viewtube/metadata/description.md | 2 + apps/viewtube/metadata/optional.md | 37 --------------- 4 files changed, 69 insertions(+), 38 deletions(-) create mode 100644 apps/viewtube/docker-compose.arm64.yml delete mode 100644 apps/viewtube/metadata/optional.md diff --git a/apps/viewtube/config.json b/apps/viewtube/config.json index 6be4953d..dd48bdae 100644 --- a/apps/viewtube/config.json +++ b/apps/viewtube/config.json @@ -5,7 +5,7 @@ "available": true, "exposable": true, "id": "viewtube", - "tipi_version": 1, + "tipi_version": 2, "version": "0.12.2", "categories": ["media"], "description": "The open source, privacy-conscious way to enjoy your favorite YouTube content.", diff --git a/apps/viewtube/docker-compose.arm64.yml b/apps/viewtube/docker-compose.arm64.yml new file mode 100644 index 00000000..07e8703e --- /dev/null +++ b/apps/viewtube/docker-compose.arm64.yml @@ -0,0 +1,66 @@ +version: '3' + +services: + viewtube: + restart: unless-stopped + container_name: viewtube + image: mauriceo/viewtube:0.12.2 + depends_on: + - viewtube-mongodb + - viewtube-redis + volumes: + - ${APP_DATA_DIR}/data/viewtube:/data + environment: + - VIEWTUBE_DATABASE_HOST=viewtube-mongodb + - VIEWTUBE_REDIS_HOST=viewtube-redis + - VIEWTUBE_SECURE=true + - VIEWTUBE_CORS_ORIGIN=${APP_PROTOCOL:-http}://${APP_DOMAIN} + # - VIEWTUBE_YOUTUBE_COOKIE= + # - VIEWTUBE_YOUTUBE_IDENTIFIER= + ports: + - ${APP_PORT}:8066 + networks: + - tipi_main_network + labels: + # Main + traefik.enable: true + traefik.http.middlewares.viewtube-web-redirect.redirectscheme.scheme: https + traefik.http.services.viewtube.loadbalancer.server.port: 8066 + # Web + traefik.http.routers.viewtube-insecure.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.viewtube-insecure.entrypoints: web + traefik.http.routers.viewtube-insecure.service: viewtube + traefik.http.routers.viewtube-insecure.middlewares: viewtube-web-redirect + # Websecure + traefik.http.routers.viewtube.rule: Host(`${APP_DOMAIN}`) + traefik.http.routers.viewtube.entrypoints: websecure + traefik.http.routers.viewtube.service: viewtube + traefik.http.routers.viewtube.tls.certresolver: myresolver + # Local domain + traefik.http.routers.viewtube-local-insecure.rule: Host(`viewtube.${LOCAL_DOMAIN}`) + traefik.http.routers.viewtube-local-insecure.entrypoints: web + traefik.http.routers.viewtube-local-insecure.service: viewtube + traefik.http.routers.viewtube-local-insecure.middlewares: viewtube-web-redirect + # Local domain secure + traefik.http.routers.viewtube-local.rule: Host(`viewtube.${LOCAL_DOMAIN}`) + traefik.http.routers.viewtube-local.entrypoints: websecure + traefik.http.routers.viewtube-local.service: viewtube + traefik.http.routers.viewtube-local.tls: true + + viewtube-mongodb: + container_name: viewtube-mongodb + restart: unless-stopped + image: mongo:4.4.18 + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}/data/db:/data/db + + viewtube-redis: + container_name: viewtube-redis + restart: unless-stopped + image: redis:7 + networks: + - tipi_main_network + volumes: + - ${APP_DATA_DIR}/data/redis:/data diff --git a/apps/viewtube/metadata/description.md b/apps/viewtube/metadata/description.md index 429a6626..e4014365 100644 --- a/apps/viewtube/metadata/description.md +++ b/apps/viewtube/metadata/description.md @@ -2,6 +2,8 @@ ViewTube is an alternative YouTube frontend that lets you watch, search and disc You can find the documentation at [viewtube.wiki](https://viewtube.wiki) +**Warning! MongoDB version 4.4.18 will be used for arm64 devices like the raspberry pi!** + ## Features - Watch videos without ads or tracking diff --git a/apps/viewtube/metadata/optional.md b/apps/viewtube/metadata/optional.md deleted file mode 100644 index 5cb35f80..00000000 --- a/apps/viewtube/metadata/optional.md +++ /dev/null @@ -1,37 +0,0 @@ -## (Optional) Use cookies from a real account - -You can provide your own cookies to circumvent any Rate Limiting Issue. - -### YouTube cookie - -- Navigate to YouTube in a web browser -- Log in, preferrably with a separate account you don't use often -- Open up the dev tools console -- Type `document.cookie` -- Copy the entire response into the `VIEWTUBE_YOUTUBE_COOKIE` environment variable - -### YouTube identifier - -- Navigate to a video -- Right click and click "view source" -- Press CTRL+F to search for "ID\_TOKEN" -- Copy this value into the `VIEWTUBE_YOUTUBE_IDENTIFIER` environment variable - -``` - "form_fields": [ - { - "type": "text", - "label": "Youtube Cookie", - "hint": "Optional, Read below", - "required": false, - "env_variable": "VIEWTUBE_YOUTUBE_COOKIE" - }, - { - "type": "text", - "label": "Youtube Identifier", - "hint": "Optional, Read below", - "required": false, - "env_variable": "VIEWTUBE_YOUTUBE_IDENTIFIER" - } - ] -```