#!/bin/sh # Generate using: https://github.com/iv-org/youtube-trusted-session-generator : ${invidious_po_token:='changeme'} : ${invidious_visitor_data:='changeme'} : ${invidious_hmac_key:='changemeeeeeeeeeeee'} : ${invidious_username:='s-invidious'} : ${invidious_password:='changeme'} : ${invidious_dbname:='invidious'} : ${invidious_dbhost:="$postgres_host"} : ${invidious_fqdn:="$fqdn"} : ${invidious_repo='https://github.com/iv-org/invidious'} : ${invidious_branch='master'} : ${invidious_sighelper_repo='https://github.com/cullumsmith/inv_sig_helper'} : ${invidious_sighelper_branch='fix-build-on-freebsd'} invidious_dn="uid=${invidious_username},${robots_basedn}" invidious_local_username=$nginx_user invidious_home=/usr/local/invidious invidious_port=8080 invidious_repo_dir="${invidious_home}/invidious.git" invidious_sighelper_repo_dir="${invidious_home}/inv_sig_helper.git" invidious_https_cert="${nginx_conf_dir}/invidious.crt" invidious_https_key="${nginx_conf_dir}/invidious.key" invidious_signature_sock=/var/run/invidious/inv_sig_helper.sock # Install required packages. pkg install -y \ ca_root_nss \ git \ crystal \ shards \ sqlite3 \ nginx \ postgresql${postgresql_version}-client \ rust # Create invidious user account. ldap_add "$invidious_dn" <