Files
owngit/.env.example
T
2026-04-22 15:44:25 +10:00

24 lines
863 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GitHub source
GITHUB_TOKEN=ghp_xxx
GITHUB_OWNER=your_github_user_or_org
GITHUB_OWNER_TYPE=user
# Gitea target
GITEA_URL=https://git.papatramp.ru
GITEA_TOKEN=gitea_pat_xxx
GITEA_OWNER=your_gitea_user_or_org
GITEA_OWNER_TYPE=user
# Push strategy
# На своём ПК можно оставить true (SSH-ключ уже в Gitea).
# Если скрипт запускается НА СЕРВЕРЕ с Gitea/root — ставьте false и задайте GITEA_USERNAME (ключ на сервере часто отсутствует).
PUSH_WITH_SSH=true
GITEA_SSH_HOST=git.papatramp.ru
GITEA_SSH_PORT=2222
# Обязательно при PUSH_WITH_SSH=false — логин владельца в Gitea (пуш по HTTPS с GITEA_TOKEN как пароль)
GITEA_USERNAME=your_gitea_username
# Optional behavior
MIGRATE_LFS=true
WORKDIR=./migration-workdir