User Tools

This is an old revision of the document!


Tube Archivist

Installation

TubeArchivist is available as container image.

Add the usual dedicated user:

useradd -d /data/daemons/tubearchivist -m tubearchivist -g media

Create the needed folders:

mkdir /data/Media/YouTube /data/Media/YouTube/cache /data/Media/YouTube/Archivist /data/Media/YouTube/es /data/Media/YouTube/redis
chown -R tubearchivist:media /data/Media/YouTube

Download the composer file from here, and edit like the following:

docker-compose.yml

Pull the images:

su - tubesync
podman compose pull

TubeSync doesn't support multi-users and doesnt really support authentication (just a simple BASIC auth, which we can ignore). So it goes behind the Reverse Proxy and SSO authentication…

Reverse Proxy

Follow the The Reverse Proxy concept and the Authentication pages.

This is the working NGINX config file:

tubesync.conf
location = /tubesync {  
        return 301 https://$host/tubesync/;
}

location ^~ /tubesync/ {
        rewrite ^/tubesync/(.*) /$1 break;
        proxy_pass http://127.0.0.1:4848/tubesync/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_redirect off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $http_connection;
}

Autostart

To start it, and set it up on boot, as usual follow my indications Using Containers on Gentoo, so link the user-containers init script:

ln -s /etc/init.d/user-containers /etc/init.d/user-containers.tubesync

and create the following config file:

/etc/conf.d/user-containers.tubesync
USER=tubesync
DESCRIPTION="Download YouTube channels"

Add the service to the default runlevel and start it now:

rc-update add user-containers.tubesync default
rc-service user-containers.tubesync start

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information