Sync Tabby Config with a Self-hosted Tabby-Web

version 1.0.215

Register Github App

Visit https://github.com/settings/applications/new to register a new app. Fill in the URL and the callback URL. for example::

  • Homepage URL: http://dillonxu.ddns.net:8000
  • Authorization callback URL: http://dillonxu.ddns.net:8000/api/1/auth/social/complete/github/

When registration is complete, record the Client ID and obtain the Client secrets.

Run Tabby Web

$ sudo mkdir tabby-web
$ sudo vim docker-compose.yml
version: '3.0'

services:
  tabby-web:
    image: ghcr.io/eugeny/tabby-web:latest
    container_name: tabby-web
    restart: always
    ports:
      - '8000:8000'
    volumes:
      - ./data:/app-dist
    environment:
      - DATABASE_URL=sqlite:////app-dist/db.sqlite3
      - PORT=8000
      - DEBUG=False
      - APP_DIST_STORAGE=file:///app-dist
      - SOCIAL_AUTH_GITHUB_KEY=xxxxxx
      - SOCIAL_AUTH_GITHUB_SECRET=xxxxxx

Modify SOCIAL_AUTH_GITHUB_KEY to: Client ID

Modify SOCIAL_AUTH_GITHUB_SECRET to: Client secrets

$ sudo docker pull ghcr.io/eugeny/tabby-web:latest
$ sudo docker compose up -d

Adding Tabby app versions

ex$ sudo docker exec -it tabby-web /bin/sh
/ # ./manage.sh add_version 1.0.163

You can find the available version numbers here.

Config Tabby Setting Sync

In the Tabby setup, go to the Config file and backup the current configuration. Then go to the Config Sync setting and fill in the information:

  • Sync Host: http://dillonxu.ddns.net:8000
  • Secret sync token:

Wait a few moments and you will see the synchronized configuration (profile) below. You can upload and write, download and overwrite, or create a new one. It is recommended to turn on the Sync automatically option.

$ sudo docker compose up -d
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus