User Tools

This is an old revision of the document!


Tube Archivist

Installation

TubeArchivist is available using docker compose, i will show you how to install with rootless podman of course.

Add the usual dedicated user:

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

Create the needed folders:

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

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

docker-compose.yml

I will show also how to setup Authelia SSO authentication below, at this point you will only use the initial password to login for the first time.

Pull the images:

su - tubearchivist
podman compose pull

Reverse Proxy

Follow the The Reverse Proxy concept and the Authentication pages.

TubeArchivist requires a subdomain, so i assume you will host as https://tube.yourdomain.com:

tube.conf
server {
        server_name tube.mydomain.com;
        listen 443 ssl;
        listen 8443 ssl;
        http2 on;

        access_log /var/log/nginx/tube.mydomain.com_access_log main;
        error_log /var/log/nginx/tube.mydomain.com_error_log info;
#       include "org.mydomain/authelia_location.conf";

        location ^~ / {
#               include "com.mydomain/authelia_proxy.conf";
#               include "com.mydomain/authelia_authrequest.conf";
                proxy_pass http://127.0.0.1:8124;
                proxy_set_header X-Forwarded-Protocol $scheme;
                proxy_set_header Remote-User $remote_user;
                proxy_buffering off;
        }

        include com.mydomain/certbot.conf;
}

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.tubearchivist

and create the following config file:

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

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

rc-update add user-containers.tubearchivist default
rc-service user-containers.tubearchivist 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