kevinf100 / tuberepair.uptimetrackers.com

Custom YouTube server written in python, for the old AppStore and classic iOS YouTube apps.
3 stars 2 forks source link

TubeRepair server, using Flask and Jinja2.

Current servers (Thanks for the hosting!):

This repo

Main stable server

Testing server

Other people

Features

In the future

Docker Public Server Setup

Git

Make sure you have Linux, ports 80 and 443 open, docker, and DNS record already pointing to your server.

# Download
git clone https://github.com/kevinf100/tuberepair.uptimetrackers.com
mv tuberepair.uptimetrackers.com/ tuberepairdocker/
cd tuberepairdocker
cp ./example/.env ../
cp ./example/docker-compose-example.yml ./example/docker-compose.yml 

docker-compose setup

Next you'll need to edit the .env file or you can edit the docker-compose.yml directly.
The .env in example is the bare minimum you need for the server to run.
You can always add more to it.

If your NOT running docker rootless

Uncomment the lines in docker-compose.yml that say to uncomment it (Lines 38 and 56) and comment that lines above them (Lines 37 and 55). Comment the user USERID line (line 3) in .env.

If your ARE running docker rootless

Get your userid

id -u

add it to USERID in the .env file.

Start

Once you edit the docker-compose.yml you are done and can run the server!

# Start
docker compose up -d --build

Docker Local/Private Setup

Note this is not meant to be exposed to the internet in this config

Git

Make sure you have Linux and docker.

# Download
git clone https://github.com/kevinf100/tuberepair.uptimetrackers.com
mv tuberepair.uptimetrackers.com/ tuberepairdocker/
cd tuberepairdocker
cp ./example/.env ../
cp ./example/docker-compose-home-example.yml ./example/docker-compose.yml 

docker-compose setup

Next you'll need to edit the .env file or you can edit the docker-compose.yml directly.

If your NOT running docker rootless

Skip to start!

If your ARE running docker rootless

You need to allow docker to expose a privileged port.
https://docs.docker.com/engine/security/rootless/#exposing-privileged-ports
or change the port 80 on line 15 in docker-compose.yml to a port higher than 1023. I recommend 4000

Start

Once you edit the docker-compose.yml you are done and can run the server!

# Start
docker compose up -d --build

Connecting to the server

If you didn't change the port in docker-compose.yml

You should be able to connect to it from your private ip.
Example

http://192.168.0.100/

If that doesn't work try adding the port like this.

http://192.168.0.100:80/

If you changed the port in docker-compose.yml

You will need to add the port.

http://192.168.0.100:YOUR PORT YOU SET HERE/

Old Setup that works without docker

Make sure you have Python (3.8 minimum) and virtualenv (optional) installed.

# Download
git clone https://github.com/kevinf100/tuberepair.uptimetrackers.com
mv tuberepair.uptimetrackers.com/ tuberepairdocker/
cd tuberepairdocker/tuberepair

# Preparing virtualenv
# You can just skip to pip, but for good measures.
virtualenv tuberepair
source tuberepair/bin/activate
pip install -r requirements.txt

# Running
python main.py

Credits

Contributors

Code

I will not copy code that explicitly states "do not modify".