Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide for configuring sig_helper + potoken #580

Closed
unixfox opened this issue Aug 13, 2024 · 1 comment · Fixed by #581
Closed

Guide for configuring sig_helper + potoken #580

unixfox opened this issue Aug 13, 2024 · 1 comment · Fixed by #581
Labels
enhancement New feature or request

Comments

@unixfox
Copy link
Member

unixfox commented Aug 13, 2024

Write a guide with:

  • Configuring sig helper
  • Generating potoken. With a big warning about privacy!
  • Provide updated docker-compose.yaml with sig_helper
@manfromdownunder
Copy link

Not sure if this is helpful for this issue. I have created a script that updates the tokens in the docker-compose. Set the cron to run it as often as needed. I am using refresher with 6 instances so there are other cron jobs restarting the instances hourly. If you are running a single instance un comment the docker-restart in the script below.

#!/bin/bash

# Run the Docker container and capture the output
output=$(docker run quay.io/invidious/youtube-trusted-session-generator)

# Extract visitor_data and po_token from the output
visitor_data=$(echo "$output" | grep -oP '(?<=visitor_data: ).*')
po_token=$(echo "$output" | grep -oP '(?<=po_token: ).*')

# Define the path to your docker-compose file
compose_file="/opt/invidious/docker-compose.yml"

# Update the docker-compose.yml file with the new visitor_data and po_token
sed -i "s/visitor_data: .*/visitor_data: $visitor_data/" $compose_file
sed -i "s/po_token: .*/po_token: $po_token/" $compose_file

# Restart the Docker containers
#docker-compose -f $compose_file down
#docker-compose -f $compose_file up -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants