Skip to content

fix: installer now downloads files from GitHub instead of local copy - #1

Open
Therealwh wants to merge 65 commits into
masterfrom
main
Open

fix: installer now downloads files from GitHub instead of local copy#1
Therealwh wants to merge 65 commits into
masterfrom
main

Conversation

@Therealwh

Copy link
Copy Markdown
Owner

No description provided.

Therealwh added 30 commits April 5, 2026 03:49
… correct RAM display, proxy management, and management URL in install summary
…hanced settings page

- install.sh: SOCKS5 setup with user/pass, Ad-Tag from MTProxyBot, GeoIP country blocking
- docker-compose: added vimagick/dante container for SOCKS5
- Web UI: new SOCKS5 page with connection details and usage instructions
- Web UI: enhanced settings page showing all services (SOCKS5, Ad-Tag, GeoIP)
- Web UI: SOCKS5 link in sidebar and dashboard
- config/socks5.conf: generated Dante config with auth
- settings.json: stores all new options
…e endpoint

- Web UI: backup/restore page with list, create, restore, delete
- Web UI: health check with Docker, disk, RAM, config checks
- Web UI: multiple SOCKS5 users management
- API: /api/system/backup, /restore, /delete-backup, /backups, /health
- API: /api/socks5/add-user for adding SOCKS5 users
- API: /api/qr for QR code generation
- Sidebar: added Backup link
… and enhanced settings

- install.sh: HTTP/HTTPS proxy setup with Squid, webhook notification config
- docker-compose: added sameersbn/squid container for HTTP proxy
- config/squid.conf: generated Squid config with basic auth
- config/squid.passwd: generated htpasswd file
- Web UI: HTTP/HTTPS proxy page with usage instructions and comparison table
- Web UI: speedtest endpoint (download/upload/ping via Cloudflare)
- Web UI: webhook test endpoint
- Web UI: settings page with speedtest, webhook test, HTTP proxy info
- settings.json: stores http_proxy and webhook_url
- version: 1.3.0
… webhook, backup, health check, SOCKS5 multi-user
…ent, rate limiting, config export

- Web UI: new Security page with IP management, firewall, rate limiting, config export
- API: /api/security/ip-lists, /blacklist/add, /blacklist/remove, /whitelist/add, /whitelist/remove
- API: /api/security/firewall (GET/POST) for UFW port management
- API: /api/security/ratelimit for rate limit configuration
- API: /api/security/export for downloading all configs as ZIP
- Sidebar: added Security link
… management, 2FA, i18n

BREAKING: Complete platform overhaul

NEW FEATURES:
- MTG Agent: FastAPI HTTP agent for remote node monitoring and management
- Node Management: Add/edit/delete nodes, SSH connect, country flags, ping test
- Client Management: Auto port/secret, start/stop, QR codes, sync, mass view
- Real-time Monitoring: rx/tx traffic, unique IPs, 24h sparkline charts, online cache
- Limits & Automation: Traffic GB auto-stop, device limit, expiry, auto-reset schedule
- Security: Token auth, TOTP 2FA (Google Authenticator, Aegis, Authy)
- Interface: Dark/light theme, RU/EN languages, custom logo upload, responsive
- Agent: One-click install via curl, Docker API integration, 30s cache

ARCHITECTURE:
- Multi-node support with HTTP agent on each node
- Client lifecycle management with limits and auto-stop
- Real-time sparkline charts for 24h connection history
- QR code generation for quick Telegram connection
- Config export as ZIP archive

Updated: README.md, webui/app.py, all templates, CSS, JS
Added: agent/ directory with agent.py, Dockerfile, install.sh
Updated: Version 2.0.0
…ith --build --force-recreate, added update.sh script

- install.sh: downloads files directly to INSTALL_DIR instead of temp dir
- install.sh: removes old webui/bot/scripts before downloading fresh copies
- install.sh: docker compose up -d --build --force-recreate on install
- install.sh: removes old Docker images before rebuild
- scripts/update.sh: one-command update script that downloads all files and rebuilds
- All step numbers corrected (8-12)
…ate contexts, auto-open firewall ports

- app.py: get_settings() now returns defaults for ALL fields (socks5, http_proxy, webhook, etc.)
- app.py: common_context() helper passes settings, has_logo, lang, now to all templates
- app.py: auto ufw allow port when creating new clients
- app.py: error handling for psutil in get_system_info()
- All page routes use common_context() to ensure consistent template variables
- Fixed template variable mismatches causing 500 errors
…TProto tab

- All templates fully in Russian (dashboard, clients, nodes, stats, settings, security, socks5, http-proxy, logs, backup)
- Every page has a description paragraph explaining what it does
- Added /mtproto page for MTProto proxy settings (domain rotation, Ad-Tag, connection links)
- Removed i18n/English toggle — everything is Russian by default
- All buttons, labels, placeholders, tooltips in Russian
- Sidebar navigation fully in Russian
- Added descriptions to forms explaining what each field does
- Help sections with tips on each page
CRITICAL FIXES:
- Docker volume mounts: added /var/run/docker.sock and /opt/mtprotoserver to webui container
- Web UI now has full access to host Docker and filesystem
- All file operations use correct paths (/app/data, /app/config, /opt/mtprotoserver)
- Speedtest rewritten in pure Python (no curl dependency)
- Health check uses docker Python SDK instead of CLI
- Logs work from inside container via docker compose
- Config export ZIP uses correct HOST_DIR path

NEW FEATURES:
- Password protection for dashboard - asked during installation
- Login page with cookie-based auth middleware
- Create SOCKS5 proxy directly from dashboard (one click)
- Create HTTP/HTTPS proxy directly from dashboard (one click)
- Update system button on dashboard (pull + rebuild)
- SOCKS5/HTTP creation auto-updates docker-compose and starts containers
- Auto-open firewall ports when creating new proxies

FILES:
- install.sh: added dashboard password step, auth.json creation, docker.sock mount
- app.py: complete rewrite with auth middleware, proxy creation, Python speedtest
- Dockerfile: added curl, requirements: added docker SDK
- New: login.html template
…ks, systemd, files, firewall rules, docker prune
…delete all, secret gen, node instructions

CRITICAL FIXES:
- Auto-create clients.json and nodes.json on startup if missing
- Fix health check - creates missing files automatically
- Add server_ip to all template contexts for auto IP substitution
- Fix all copy buttons to use server_ip variable
- Fix copy buttons in clients.html, mtproto.html, nodes.html

NEW FEATURES:
- Delete all button on dashboard (with double confirmation)
- Secret generation button in MTProto settings page
- Detailed step-by-step instructions on nodes page
- Uninstall API endpoint

TEMPLATES UPDATED:
- dashboard.html: added delete all button, server_ip usage
- clients.html: fixed copy buttons with server_ip
- nodes.html: detailed instructions, server_ip usage
- mtproto.html: secret generation, server_ip usage
- All templates use server_ip instead of settings.proxy_ip
Therealwh added 30 commits April 5, 2026 07:03
…et per proxy, delete individual proxies, list API endpoint
…y is always saved even if container creation fails
…t/tcp access (inspired by MaksimTMB/mtg-adminpanel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant