cl / colab_tunnel /_config.py
rottenstuff's picture
Upload 13 files
c0e2219 verified
Raw
History Blame Contribute Delete
2.4 kB
from os import environ
from pathlib import Path
# Переопределяется переменной окружения TUNNEL_WORK_DIR
WORK_FOLDER = Path(environ.get('TUNNEL_WORK_DIR', '/content/.config'))
test_server_bin_url = 'https://github.com/imbecility/colab-tunnel/releases/download/test_server/test_server'
test_server_bin = WORK_FOLDER / 'test_server'
cloudflare_bin = WORK_FOLDER / 'cloudflared'
tmole_bin = WORK_FOLDER / 'tmole'
tunwg_bin = WORK_FOLDER / 'tunwg'
go_localt_bin = WORK_FOLDER / 'go_localt'
gradio_bin = WORK_FOLDER / 'frpc_linux_amd64'
mmar_bin = WORK_FOLDER / 'mmar'
tunnelite_bin = WORK_FOLDER / 'tunnelite'
beeceptor_bin = WORK_FOLDER / 'beeceptor-cli'
bore_bin = WORK_FOLDER / 'bore'
boredigital_bin = WORK_FOLDER / 'bore_digital'
colab_native_url = WORK_FOLDER / 'colab_url.txt'
links_file = WORK_FOLDER / 'links.txt'
HEADERS = {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'cache-control': 'no-cache',
'device-memory': '8',
'downlink': '10.0',
'dpr': '1.5',
'ect': '4g',
'origin': 'https://colab.research.google.com',
'pragma': 'no-cache',
'priority': 'u=0, i',
'referer': 'https://colab.research.google.com',
'rtt': '200',
'sec-ch-ua': '"Google Chrome";v="148", "Not?A)Brand";v="24", "Chromium";v="148"',
'sec-ch-ua-arch': '"x86"',
'sec-ch-ua-bitness': '"64"',
'sec-ch-ua-full-version': '"148.0.7778.168"',
'sec-ch-ua-full-version-list': '"Google Chrome";v="148.0.7778.168", "Not?A)Brand";v="24.0.0.0", "Chromium";v="148.0.7778.168"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-model': '""',
'sec-ch-ua-platform': '"Windows"',
'sec-ch-ua-platform-version': '"19.0.0"',
'sec-ch-ua-wow64': '?0',
'sec-ch-viewport-height': '592',
'sec-ch-viewport-width': '1216',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.7778.168 Safari/537.36',
'viewport-width': '1216'
}