Compare commits

..
6 Commits
Author SHA1 Message Date
SamNet-dev 6399ca7f4c docs: update mirror URLs to dl.samnet.dev 2026-02-24 05:07:04 -06:00
SamNet-dev 232113336e docs: add mirror install URL for restricted regions 2026-02-24 04:42:02 -06:00
SamNet-dev 4972401ec2 fix: use registry.samnet.dev for image push to bypass Cloudflare upload limit 2026-02-24 04:13:40 -06:00
SamNet-dev 55774ba9c7 fix: disable QEMU cache on self-hosted runner 2026-02-24 03:01:34 -06:00
SamNet-dev eefaaded23 fix: use registry cache instead of GHA cache for self-hosted runner 2026-02-24 01:18:59 -06:00
SamNet-dev d32e474025 feat: migrate MTProxyMax to Gitea + bump telemt engine to v3.0.13
- All install/README URLs point to git.samnet.dev
- Container registry switched to Gitea
- GitHub Actions converted to Gitea Actions
- Engine bumped from v3.0.7 to v3.0.13 (TLS full cert, ME stability, pool hardswap)
- Self-update mechanism stays on GitHub (pending account restoration)
2026-02-24 00:07:58 -06:00
5 changed files with 40 additions and 25 deletions
@@ -6,36 +6,36 @@ on:
telemt_commit:
description: 'Telemt commit hash to build from'
required: true
default: '1a525f7'
default: 'd38d7f2'
version_tag:
description: 'Version tag (e.g. 3.0.7-1a525f7)'
description: 'Version tag (e.g. 3.0.13-d38d7f2)'
required: true
default: '3.0.7-1a525f7'
default: '3.0.13-d38d7f2'
env:
REGISTRY: ghcr.io
REGISTRY: git.samnet.dev
PUSH_REGISTRY: registry.samnet.dev
IMAGE_NAME: mtproxymax-telemt
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Set up QEMU (for ARM builds)
uses: docker/setup-qemu-action@v3
with:
cache-image: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ${{ env.PUSH_REGISTRY }}
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Create Dockerfile
run: |
@@ -60,7 +60,7 @@ jobs:
- name: Lowercase owner
id: owner
run: echo "name=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
run: echo "name=$(echo '${{ gitea.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: Build and push multi-arch image
uses: docker/build-push-action@v6
@@ -71,7 +71,7 @@ jobs:
build-args: |
TELEMT_COMMIT=${{ github.event.inputs.telemt_commit }}
tags: |
${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version_tag }}
${{ env.REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version_tag }}
${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:latest
cache-from: type=registry,ref=${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.PUSH_REGISTRY }}/${{ steps.owner.outputs.name }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
+3
View File
@@ -0,0 +1,3 @@
__pycache__/
*.pyc
.claude/
+13 -1
View File
@@ -28,6 +28,11 @@ MTProxyMax is a full-featured Telegram MTProto proxy manager powered by the **te
<img src="main.png" width="600" alt="MTProxyMax Main Menu"/>
```bash
sudo bash -c "$(curl -fsSL https://git.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
```
Alternative (mirror, for restricted regions):
```bash
sudo bash -c "$(curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
```
@@ -52,6 +57,11 @@ Most MTProxy tools give you a proxy and a link. That's it. MTProxyMax gives you
### One-Line Install
```bash
sudo bash -c "$(curl -fsSL https://git.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
```
Alternative (mirror, for restricted regions):
```bash
sudo bash -c "$(curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh)"
```
@@ -61,11 +71,13 @@ The interactive wizard walks you through everything: port, domain, first user se
### Manual Install
```bash
curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh -o mtproxymax
curl -fsSL https://git.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh -o mtproxymax
chmod +x mtproxymax
sudo ./mtproxymax install
```
Alternative (mirror): `curl -fsSL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh -o mtproxymax`
### After Install
```bash
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# MTProxyMax Quick Installer — SamNet Technologies
# Usage: curl -sL https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh | sudo bash
# Usage: curl -sL https://git.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/install.sh | sudo bash
set -e
SCRIPT_URL="https://dl.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh"
SCRIPT_URL="https://git.samnet.dev/SamNet-dev/MTProxyMax/raw/branch/main/mtproxymax.sh"
if [ "$(id -u)" -ne 0 ]; then echo "Run as root: curl -sL $SCRIPT_URL | sudo bash" >&2; exit 1; fi
curl -fsSL "$SCRIPT_URL" -o /tmp/mtproxymax.sh && bash /tmp/mtproxymax.sh install && rm -f /tmp/mtproxymax.sh
+6 -6
View File
@@ -22,10 +22,10 @@ UPSTREAMS_FILE="${INSTALL_DIR}/upstreams.conf"
BACKUP_DIR="${INSTALL_DIR}/backups"
CONTAINER_NAME="mtproxymax"
DOCKER_IMAGE_BASE="mtproxymax-telemt"
TELEMT_MIN_VERSION="3.0.7"
TELEMT_COMMIT="1a525f7" # Pinned: v3.0.7 — Fake TLS V2, config reload, ME frame fixes
TELEMT_MIN_VERSION="3.0.13"
TELEMT_COMMIT="d38d7f2" # Pinned: v3.0.13 — ME pool hardswap, TLS full cert, stability fixes
GITHUB_REPO="SamNet-dev/MTProxyMax"
REGISTRY_IMAGE="ghcr.io/samnet-dev/mtproxymax-telemt"
REGISTRY_IMAGE="git.samnet.dev/samnet-dev/mtproxymax-telemt"
# Bash version check
if [ "${BASH_VERSINFO[0]:-0}" -lt 4 ]; then
@@ -864,7 +864,7 @@ wait_for_docker() {
return 1
}
# Build telemt Docker image from latest GitHub release binary
# Build telemt Docker image from source
build_telemt_image() {
local force="${1:-false}"
@@ -5384,7 +5384,7 @@ show_info_autoupdate() {
draw_header "AUTO-UPDATE"
echo ""
echo -e " ${BOLD}How Auto-Update works:${NC}"
echo -e " MTProxyMax checks GitHub for new releases and can update"
echo -e " MTProxyMax checks for new releases and can update"
echo -e " itself with a single command."
echo ""
echo -e " ${BOLD}Update process:${NC}"
@@ -5846,7 +5846,7 @@ show_about() {
draw_box_line " ${BOLD}Version:${NC} v${VERSION}" "$w"
draw_box_line " ${BOLD}Engine:${NC} telemt v$(get_telemt_version) (Rust)" "$w"
draw_box_line " ${BOLD}License:${NC} MIT" "$w"
draw_box_line " ${BOLD}GitHub:${NC} github.com/${GITHUB_REPO}" "$w"
draw_box_line " ${BOLD}Repository:${NC} git.samnet.dev/${GITHUB_REPO}" "$w"
draw_box_empty "$w"
draw_box_sep "$w"
draw_box_center "${BOLD}FEATURES${NC}" "$w"