Compare commits
12
Commits
v2.0.0-beta
...
v2.5.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d63e5d6ef | ||
|
|
a5b8f26db1 | ||
|
|
599e0a487c | ||
|
|
77c6f0dab7 | ||
|
|
fd257a59f7 | ||
|
|
6206697e3b | ||
|
|
4c19099b04 | ||
|
|
80160d0ef4 | ||
|
|
ac76a0e540 | ||
|
|
bf7bd16fcd | ||
|
|
24e793d943 | ||
|
|
415cfea5eb |
@@ -1,6 +1,6 @@
|
|||||||
# Amnezia Web Panel
|
# Amnezia Web Panel
|
||||||
|
|
||||||
A modern, high-performance web interface for managing **AmneziaWG**, **Classic WireGuard**, **Xray (XTLS-Reality)**, **Hysteria 2**, **NaiveProxy**, **Telemt (Telegram MTProxy)**, **Cloudflare WARP**, **AmneziaDNS**, **AdGuard Home**, **SOCKS5**, and **NGINX + Let's Encrypt** services on remote Ubuntu servers — from a single dashboard. Designed to provide a premium user experience with robust administrative capabilities.
|
A modern, high-performance web interface for managing **AmneziaWG**, **Classic WireGuard**, **Xray (XTLS-Reality)**, **Hysteria 2**, **NaiveProxy**, **Telemt (Telegram MTProxy)**, **Cloudflare WARP**, **NordVPN**, **AmneziaDNS**, **AdGuard Home**, **SOCKS5**, and **NGINX + Let's Encrypt** services on remote Ubuntu servers — from a single dashboard. Designed to provide a premium user experience with robust administrative capabilities.
|
||||||
|
|
||||||
> ### 🔄 Compatibility with Official Amnezia Client
|
> ### 🔄 Compatibility with Official Amnezia Client
|
||||||
>
|
>
|
||||||
@@ -63,9 +63,10 @@ Configuration panel for system parameters and preferences:
|
|||||||
* **Classic WireGuard**: Standard, high-performance WireGuard protocol for unmatched speed and broad device compatibility with traffic monitoring support.
|
* **Classic WireGuard**: Standard, high-performance WireGuard protocol for unmatched speed and broad device compatibility with traffic monitoring support.
|
||||||
* **Xray (XTLS-Reality)**: Stealthy protocol that masks VPN traffic as standard HTTPS browsing. Pinned to **Xray-core v26.x**; transparently reads both the **panel layout** (`meta.json` + `clientsTable.json`) and the **native Amnezia client layout** (`xray_*.key` files + `clientsTable`), so a node first installed via the official mobile/desktop app can be attached to the panel without re-installation.
|
* **Xray (XTLS-Reality)**: Stealthy protocol that masks VPN traffic as standard HTTPS browsing. Pinned to **Xray-core v26.x**; transparently reads both the **panel layout** (`meta.json` + `clientsTable.json`) and the **native Amnezia client layout** (`xray_*.key` files + `clientsTable`), so a node first installed via the official mobile/desktop app can be attached to the panel without re-installation.
|
||||||
* **Hysteria 2**: QUIC/HTTP3 proxy from [apernet/hysteria](https://github.com/apernet/hysteria) via `tobyxdd/hysteria:v2` — Let's Encrypt TLS, salamander obfuscation, password auth, `hy2://` share links. Per-server SSL domain/email defaults, renew from settings; install requires free TCP **80** and **443**.
|
* **Hysteria 2**: QUIC/HTTP3 proxy from [apernet/hysteria](https://github.com/apernet/hysteria) via `tobyxdd/hysteria:v2` — Let's Encrypt TLS, salamander obfuscation, password auth, `hy2://` share links. Per-server SSL domain/email defaults, renew from settings; install requires free TCP **80** and **443**.
|
||||||
* **NaiveProxy**: HTTPS/HTTP2 camouflage proxy via [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) (Caddy + [klzgrad/forwardproxy](https://github.com/klzgrad/forwardproxy) naïve fork). ACME TLS on the domain, per-client basic auth, `naive+https://` share links. Requires free TCP **80** and **443**.
|
* **NaiveProxy** (stable): HTTPS/HTTP2 camouflage proxy via [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) (Caddy + [klzgrad/forwardproxy](https://github.com/klzgrad/forwardproxy) naïve fork). ACME TLS on the domain, per-client basic auth, `naive+https://` share links. Requires free TCP **80** and **443**. **Use Karing** as the client — do **not** use v2rayN; other clients are untested.
|
||||||
* **Telemt (Telegram MTProxy)**: High-performance Telegram MTProxy with TLS emulation and comprehensive management (quotas, IP limits, real-time session tracking). Robust install path that auto-configures Docker's official apt/yum repository when needed.
|
* **Telemt (Telegram MTProxy)**: High-performance Telegram MTProxy with TLS emulation and comprehensive management (quotas, IP limits, real-time session tracking). Robust install path that auto-configures Docker's official apt/yum repository when needed.
|
||||||
* **Cloudflare WARP**: Add and manage WARP-powered connectivity from the panel for routing and network flexibility.
|
* **Cloudflare WARP**: Add and manage WARP-powered connectivity from the panel for routing and network flexibility.
|
||||||
|
* **NordVPN**: Connect/disconnect outbound NordVPN from Settings via the official CLI (optional country/city).
|
||||||
* **🛠 Services**:
|
* **🛠 Services**:
|
||||||
* **AmneziaDNS**: Internal DNS resolver on a private docker network (`amnezia-dns-net`, IP `172.29.172.254`) to prevent DNS leaks and blockings.
|
* **AmneziaDNS**: Internal DNS resolver on a private docker network (`amnezia-dns-net`, IP `172.29.172.254`) to prevent DNS leaks and blockings.
|
||||||
* **AdGuard Home**: DNS-based ad blocker with a web admin UI. Two install modes: **Replace AmneziaDNS** (takes its IP, all VPN clients use AdGuard immediately) or **Side-by-side** (parallel deployment on `172.29.172.253`, web UI accessible only over the VPN by default). Optional opt-in checkboxes to expose the web UI / DoT / DoH on the host.
|
* **AdGuard Home**: DNS-based ad blocker with a web admin UI. Two install modes: **Replace AmneziaDNS** (takes its IP, all VPN clients use AdGuard immediately) or **Side-by-side** (parallel deployment on `172.29.172.253`, web UI accessible only over the VPN by default). Optional opt-in checkboxes to expose the web UI / DoT / DoH on the host.
|
||||||
@@ -85,6 +86,11 @@ Configuration panel for system parameters and preferences:
|
|||||||
* **🌐 Internationalization (i18n)**:
|
* **🌐 Internationalization (i18n)**:
|
||||||
* Full support for **English**, **Russian**, **French**, **Chinese**, and **Persian**.
|
* Full support for **English**, **Russian**, **French**, **Chinese**, and **Persian**.
|
||||||
* Native **RTL (Right-to-Left)** support for Persian language.
|
* Native **RTL (Right-to-Left)** support for Persian language.
|
||||||
|
* **🔄 Auto-update**:
|
||||||
|
* Settings → About checks releases on [git.evilfox.cc](https://git.evilfox.cc/test2/Amnezia-Web-Panel-main) and can install the latest tag via git + restart (when the panel runs from a git checkout).
|
||||||
|
* **🌍 Tunnels & outbound VPN**:
|
||||||
|
* **Cloudflare Quick Tunnel** and **ngrok** expose the local panel to the internet.
|
||||||
|
* **Cloudflare WARP** and **NordVPN** route the host outbound (no public panel URL).
|
||||||
* **👥 Advanced User Management**:
|
* **👥 Advanced User Management**:
|
||||||
* Role-based access (Admin, Support, Regular User).
|
* Role-based access (Admin, Support, Regular User).
|
||||||
* Traffic limits, status monitoring, and account expiration.
|
* Traffic limits, status monitoring, and account expiration.
|
||||||
@@ -222,6 +228,40 @@ GitHub Actions workflows in `.github/workflows/`:
|
|||||||
|
|
||||||
## 📋 Fix / changelog (this fork)
|
## 📋 Fix / changelog (this fork)
|
||||||
|
|
||||||
|
### v2.5.3
|
||||||
|
* **Fix gray Update panel button** — enabled by default; Docker installs allow in-container archive updates when `/app` is writable.
|
||||||
|
|
||||||
|
### v2.5.2
|
||||||
|
* **Tunnels UI redesign** — Settings → Tunnels: grouped layout (public access / outbound VPN), provider cards, status pills, responsive grid.
|
||||||
|
|
||||||
|
### v2.5.1
|
||||||
|
* **One-click panel update** — Settings → About → **Update panel**: downloads release ZIP from Gitea (or `git checkout` when `.git` exists), runs `pip install`, restarts.
|
||||||
|
|
||||||
|
### v2.5.0
|
||||||
|
* **NordVPN in Tunnels** — connect/disconnect outbound NordVPN from Settings (official `nordvpn` CLI; optional country/city).
|
||||||
|
|
||||||
|
### v2.4.0
|
||||||
|
* **Auto-update from Gitea**: Settings → About checks https://git.evilfox.cc/test2/Amnezia-Web-Panel-main releases and can install the latest tag via `git fetch` + checkout, then restart (git install only).
|
||||||
|
|
||||||
|
### v2.3.0
|
||||||
|
* **Cascade removed** — double-VPN feature dropped from the panel (manager, API, UI, i18n).
|
||||||
|
|
||||||
|
### v2.2.1
|
||||||
|
* **Cascade egress verify fix**: bind curl to ENTRY `awg0`/`wg0` IP (client-subnet policy route), not cascade peer Address.
|
||||||
|
* Soft-warn (no rollback) when policy route via `cascade` is OK but public-IP echo services fail.
|
||||||
|
|
||||||
|
### v2.2.0
|
||||||
|
* **Cascade (double VPN) restored** — later removed in **v2.3.0**.
|
||||||
|
* Inspired by [ryderams/amneziawg-cascade](https://github.com/ryderams/amneziawg-cascade); logic ran over panel SSH (**no remote curl|bash**).
|
||||||
|
|
||||||
|
### v2.1.0
|
||||||
|
* **NaiveProxy — stable**: production-ready install (Caddy + klzgrad/forwardproxy), share links always include `:443`.
|
||||||
|
* **Client notes (important)**:
|
||||||
|
* **Do not use v2rayN** with NaiveProxy (broken DNS/IPv6 behaviour → latency −1 ms even when the server is fine).
|
||||||
|
* **Karing** — confirmed working.
|
||||||
|
* Other clients — untested / use at your own risk.
|
||||||
|
* Share-link and config UI hints updated accordingly.
|
||||||
|
|
||||||
### v2.0.0-beta
|
### v2.0.0-beta
|
||||||
* **NaiveProxy** (Beta): install [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) server via Caddy + naïve [forwardproxy](https://github.com/klzgrad/forwardproxy) — domain TLS (ACME), per-client basic auth, `naive+https://` share links.
|
* **NaiveProxy** (Beta): install [klzgrad/naiveproxy](https://github.com/klzgrad/naiveproxy) server via Caddy + naïve [forwardproxy](https://github.com/klzgrad/forwardproxy) — domain TLS (ACME), per-client basic auth, `naive+https://` share links.
|
||||||
* Marketplace / server page / users / invites / Telegram / backups include NaiveProxy.
|
* Marketplace / server page / users / invites / Telegram / backups include NaiveProxy.
|
||||||
@@ -245,7 +285,7 @@ GitHub Actions workflows in `.github/workflows/`:
|
|||||||
### v1.6.0
|
### v1.6.0
|
||||||
* **3x-ui multi-panel**: register several 3x-ui servers in Settings; pick a panel and load VLESS inbounds over its API when creating users/invites (share link comes from 3x-ui).
|
* **3x-ui multi-panel**: register several 3x-ui servers in Settings; pick a panel and load VLESS inbounds over its API when creating users/invites (share link comes from 3x-ui).
|
||||||
* **Docker / CI**: refreshed `Dockerfile` + compose, `.env.example`, CI checks, GHCR image workflow.
|
* **Docker / CI**: refreshed `Dockerfile` + compose, `.env.example`, CI checks, GHCR image workflow.
|
||||||
* **Cascade removed** for now (pending redesign — showed active while internet often did not work).
|
* **Cascade** was temporarily removed in this release (briefly restored in v2.2.x, removed again in **v2.3.0**).
|
||||||
* **WG/AWG backups**: ZIP export of client `.conf` + restore with loading feedback.
|
* **WG/AWG backups**: ZIP export of client `.conf` + restore with loading feedback.
|
||||||
* **API performance**: in-memory data cache, faster server check/stats.
|
* **API performance**: in-memory data cache, faster server check/stats.
|
||||||
* **Share / guest**: one-tap “Copy key”.
|
* **Share / guest**: one-tap “Copy key”.
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ from managers.awg_manager import AWGManager
|
|||||||
from managers.xray_manager import XrayManager
|
from managers.xray_manager import XrayManager
|
||||||
from managers.wireguard_manager import WireGuardManager
|
from managers.wireguard_manager import WireGuardManager
|
||||||
from managers.backup_manager import BackupManager
|
from managers.backup_manager import BackupManager
|
||||||
|
from managers.update_manager import UpdateManager, version_gt, api_latest_url, repo_url
|
||||||
import telegram_bot as tg_bot
|
import telegram_bot as tg_bot
|
||||||
|
|
||||||
# Configure logging
|
# Configure logging
|
||||||
@@ -101,9 +102,9 @@ else:
|
|||||||
application_path = os.path.dirname(__file__)
|
application_path = os.path.dirname(__file__)
|
||||||
|
|
||||||
DATA_FILE = os.path.join(application_path, 'data.json') # legacy JSON; used only for one-shot import / export
|
DATA_FILE = os.path.join(application_path, 'data.json') # legacy JSON; used only for one-shot import / export
|
||||||
CURRENT_VERSION = "v2.0.0-beta"
|
CURRENT_VERSION = "v2.5.3"
|
||||||
RELEASES_REPO_URL = "https://git.evilfox.cc/test2/Amnezia-Web-Panel-main"
|
RELEASES_REPO_URL = repo_url()
|
||||||
RELEASES_API_LATEST = "https://git.evilfox.cc/api/v1/repos/test2/Amnezia-Web-Panel-main/releases/latest"
|
RELEASES_API_LATEST = api_latest_url()
|
||||||
BIN_DIR = os.environ.get('TUNNEL_BIN_DIR', os.path.join(application_path, 'bin'))
|
BIN_DIR = os.environ.get('TUNNEL_BIN_DIR', os.path.join(application_path, 'bin'))
|
||||||
TUNNEL_STATE_FILE = os.environ.get('TUNNEL_STATE_FILE', os.path.join(application_path, 'tunnels_state.json'))
|
TUNNEL_STATE_FILE = os.environ.get('TUNNEL_STATE_FILE', os.path.join(application_path, 'tunnels_state.json'))
|
||||||
|
|
||||||
@@ -137,6 +138,7 @@ TUNNEL_RUNTIMES = {
|
|||||||
TUNNEL_LOCK = threading.Lock()
|
TUNNEL_LOCK = threading.Lock()
|
||||||
TUNNEL_URL_RE = re.compile(r'https://[^\s"\']+')
|
TUNNEL_URL_RE = re.compile(r'https://[^\s"\']+')
|
||||||
WARP_CLI_COMMAND = 'warp-cli.exe' if os.name == 'nt' else 'warp-cli'
|
WARP_CLI_COMMAND = 'warp-cli.exe' if os.name == 'nt' else 'warp-cli'
|
||||||
|
NORDVPN_CLI_COMMAND = 'nordvpn.exe' if os.name == 'nt' else 'nordvpn'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -151,7 +153,7 @@ def load_translations():
|
|||||||
if f.endswith('.json'):
|
if f.endswith('.json'):
|
||||||
lang = f.split('.')[0]
|
lang = f.split('.')[0]
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(trans_dir, f), 'r', encoding='utf-8') as tf:
|
with open(os.path.join(trans_dir, f), 'r', encoding='utf-8-sig') as tf:
|
||||||
TRANSLATIONS[lang] = json.load(tf)
|
TRANSLATIONS[lang] = json.load(tf)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error loading translation {f}: {e}")
|
logger.error(f"Error loading translation {f}: {e}")
|
||||||
@@ -372,6 +374,152 @@ def disable_warp():
|
|||||||
return get_warp_status()
|
return get_warp_status()
|
||||||
|
|
||||||
|
|
||||||
|
def get_nordvpn_cli_binary():
|
||||||
|
found = shutil.which(NORDVPN_CLI_COMMAND)
|
||||||
|
if found:
|
||||||
|
return found
|
||||||
|
if os.name == 'nt':
|
||||||
|
for base in (os.environ.get('ProgramFiles'), os.environ.get('ProgramFiles(x86)')):
|
||||||
|
if not base:
|
||||||
|
continue
|
||||||
|
for sub in ('NordVPN', 'NordVPN NordSec'):
|
||||||
|
candidate = os.path.join(base, sub, 'nordvpn.exe')
|
||||||
|
if os.path.exists(candidate):
|
||||||
|
return candidate
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def is_nordvpn_cli_installed():
|
||||||
|
return bool(get_nordvpn_cli_binary())
|
||||||
|
|
||||||
|
|
||||||
|
def _nordvpn_install_hint():
|
||||||
|
system = platform.system().lower()
|
||||||
|
if system == 'windows':
|
||||||
|
return (
|
||||||
|
'Install NordVPN from https://nordvpn.com/download/ or Microsoft Store, '
|
||||||
|
'then restart this panel.'
|
||||||
|
)
|
||||||
|
if system == 'darwin':
|
||||||
|
return 'Install NordVPN for macOS from https://nordvpn.com/download/, then restart this panel.'
|
||||||
|
return (
|
||||||
|
'Install NordVPN CLI: sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh), '
|
||||||
|
'add your user to the nordvpn group, run nordvpn login, then restart this panel.'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def run_nordvpn_cli(*args, timeout: int = 30):
|
||||||
|
binary = get_nordvpn_cli_binary()
|
||||||
|
if not binary:
|
||||||
|
raise RuntimeError(_nordvpn_install_hint())
|
||||||
|
creationflags = subprocess.CREATE_NO_WINDOW if os.name == 'nt' else 0
|
||||||
|
result = subprocess.run(
|
||||||
|
[binary, *args],
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
encoding='utf-8',
|
||||||
|
errors='replace',
|
||||||
|
timeout=timeout,
|
||||||
|
creationflags=creationflags,
|
||||||
|
)
|
||||||
|
output = '\n'.join(part.strip() for part in (result.stdout, result.stderr) if part and part.strip())
|
||||||
|
if result.returncode != 0:
|
||||||
|
raise RuntimeError(output or f'nordvpn exited with code {result.returncode}')
|
||||||
|
return output
|
||||||
|
|
||||||
|
|
||||||
|
def _parse_nordvpn_status(output: str):
|
||||||
|
lowered = (output or '').lower()
|
||||||
|
if 'not logged in' in lowered or 'login required' in lowered or 'please log in' in lowered:
|
||||||
|
return 'not_logged_in'
|
||||||
|
if 'disconnected' in lowered:
|
||||||
|
return 'disconnected'
|
||||||
|
if 'connecting' in lowered:
|
||||||
|
return 'connecting'
|
||||||
|
if 'connected' in lowered:
|
||||||
|
return 'connected'
|
||||||
|
if 'daemon' in lowered or 'nordvpnd' in lowered:
|
||||||
|
return 'service_unavailable'
|
||||||
|
return 'unknown'
|
||||||
|
|
||||||
|
|
||||||
|
def _nordvpn_server_line(output: str) -> str:
|
||||||
|
for line in (output or '').splitlines():
|
||||||
|
stripped = line.strip()
|
||||||
|
if not stripped:
|
||||||
|
continue
|
||||||
|
low = stripped.lower()
|
||||||
|
if low.startswith('server:') or low.startswith('country:') or low.startswith('your new ip:'):
|
||||||
|
return stripped
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
def get_nordvpn_status():
|
||||||
|
installed = is_nordvpn_cli_installed()
|
||||||
|
status = {
|
||||||
|
'installed': installed,
|
||||||
|
'running': False,
|
||||||
|
'connected': False,
|
||||||
|
'status': 'not_installed' if not installed else 'unknown',
|
||||||
|
'server': '',
|
||||||
|
'raw': '',
|
||||||
|
'last_error': '' if installed else _nordvpn_install_hint(),
|
||||||
|
'install_hint': _nordvpn_install_hint(),
|
||||||
|
}
|
||||||
|
if not installed:
|
||||||
|
return status
|
||||||
|
try:
|
||||||
|
output = run_nordvpn_cli('status', timeout=15)
|
||||||
|
parsed = _parse_nordvpn_status(output)
|
||||||
|
status.update({
|
||||||
|
'running': parsed in ('connected', 'connecting'),
|
||||||
|
'connected': parsed == 'connected',
|
||||||
|
'status': parsed,
|
||||||
|
'server': _nordvpn_server_line(output),
|
||||||
|
'raw': output,
|
||||||
|
'last_error': '',
|
||||||
|
})
|
||||||
|
except Exception as e:
|
||||||
|
status['last_error'] = str(e)
|
||||||
|
lowered = str(e).lower()
|
||||||
|
if 'not logged in' in lowered or 'login' in lowered:
|
||||||
|
status['status'] = 'not_logged_in'
|
||||||
|
elif 'daemon' in lowered or 'nordvpnd' in lowered or 'service' in lowered or 'permission' in lowered:
|
||||||
|
status['status'] = 'service_unavailable'
|
||||||
|
else:
|
||||||
|
status['status'] = 'error'
|
||||||
|
return status
|
||||||
|
|
||||||
|
|
||||||
|
def enable_nordvpn(country: str = '', city: str = ''):
|
||||||
|
current = get_nordvpn_status()
|
||||||
|
if not current.get('installed'):
|
||||||
|
raise RuntimeError(current.get('install_hint') or _nordvpn_install_hint())
|
||||||
|
if current.get('status') == 'not_logged_in':
|
||||||
|
raise RuntimeError(
|
||||||
|
'NordVPN is not logged in. Run `nordvpn login` on this host (browser flow), then retry.'
|
||||||
|
)
|
||||||
|
args = ['connect']
|
||||||
|
country = (country or '').strip()
|
||||||
|
city = (city or '').strip()
|
||||||
|
if country and city:
|
||||||
|
args.extend([country, city])
|
||||||
|
elif country:
|
||||||
|
args.append(country)
|
||||||
|
run_nordvpn_cli(*args, timeout=45)
|
||||||
|
time.sleep(1)
|
||||||
|
return get_nordvpn_status()
|
||||||
|
|
||||||
|
|
||||||
|
def disable_nordvpn():
|
||||||
|
current = get_nordvpn_status()
|
||||||
|
if not current.get('installed'):
|
||||||
|
raise RuntimeError(current.get('install_hint') or _nordvpn_install_hint())
|
||||||
|
run_nordvpn_cli('disconnect', timeout=30)
|
||||||
|
time.sleep(0.5)
|
||||||
|
return get_nordvpn_status()
|
||||||
|
|
||||||
|
|
||||||
def get_tunnel_command_name(provider: str):
|
def get_tunnel_command_name(provider: str):
|
||||||
if provider == 'cloudflare':
|
if provider == 'cloudflare':
|
||||||
return 'cloudflared.exe' if os.name == 'nt' else 'cloudflared'
|
return 'cloudflared.exe' if os.name == 'nt' else 'cloudflared'
|
||||||
@@ -1742,7 +1890,6 @@ class HysteriaSettingsRequest(BaseModel):
|
|||||||
email: Optional[str] = None
|
email: Optional[str] = None
|
||||||
renew_ssl: bool = False
|
renew_ssl: bool = False
|
||||||
|
|
||||||
|
|
||||||
class ProtocolRequest(BaseModel):
|
class ProtocolRequest(BaseModel):
|
||||||
protocol: str = 'awg'
|
protocol: str = 'awg'
|
||||||
|
|
||||||
@@ -1993,6 +2140,16 @@ class TunnelStartRequest(BaseModel):
|
|||||||
authtoken: Optional[str] = None
|
authtoken: Optional[str] = None
|
||||||
|
|
||||||
|
|
||||||
|
class ApplyUpdateRequest(BaseModel):
|
||||||
|
target_version: Optional[str] = None
|
||||||
|
allow_dirty: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
class NordvpnConnectRequest(BaseModel):
|
||||||
|
country: Optional[str] = ''
|
||||||
|
city: Optional[str] = ''
|
||||||
|
|
||||||
|
|
||||||
# ======================== Startup ========================
|
# ======================== Startup ========================
|
||||||
|
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
@@ -2300,7 +2457,7 @@ async def server_detail(request: Request, server_id: int):
|
|||||||
return RedirectResponse(url='/')
|
return RedirectResponse(url='/')
|
||||||
server = data['servers'][server_id]
|
server = data['servers'][server_id]
|
||||||
users_list = data.get('users', [])
|
users_list = data.get('users', [])
|
||||||
return tpl(request, 'server.html', server=server, server_id=server_id, users=users_list, all_servers=data['servers'])
|
return tpl(request, 'server.html', server=server, server_id=server_id, users=users_list)
|
||||||
|
|
||||||
|
|
||||||
@app.get('/users', response_class=HTMLResponse, tags=["System Templates"])
|
@app.get('/users', response_class=HTMLResponse, tags=["System Templates"])
|
||||||
@@ -3231,6 +3388,7 @@ async def api_hysteria_update_settings(request: Request, server_id: int, req: Hy
|
|||||||
return JSONResponse({'error': str(e)}, status_code=500)
|
return JSONResponse({'error': str(e)}, status_code=500)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@app.post('/api/servers/{server_id}/uninstall', tags=["Protocols"])
|
@app.post('/api/servers/{server_id}/uninstall', tags=["Protocols"])
|
||||||
async def api_uninstall_protocol(request: Request, server_id: int, req: ProtocolRequest):
|
async def api_uninstall_protocol(request: Request, server_id: int, req: ProtocolRequest):
|
||||||
if not _check_admin(request):
|
if not _check_admin(request):
|
||||||
@@ -5498,6 +5656,8 @@ async def api_check_updates(request: Request):
|
|||||||
if not _check_admin(request):
|
if not _check_admin(request):
|
||||||
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
||||||
try:
|
try:
|
||||||
|
updater = UpdateManager(application_path, CURRENT_VERSION)
|
||||||
|
mode = updater.detect_mode()
|
||||||
async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:
|
async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:
|
||||||
resp = await client.get(
|
resp = await client.get(
|
||||||
RELEASES_API_LATEST,
|
RELEASES_API_LATEST,
|
||||||
@@ -5511,20 +5671,104 @@ async def api_check_updates(request: Request):
|
|||||||
data = resp.json() if resp.content else {}
|
data = resp.json() if resp.content else {}
|
||||||
latest = (data.get('tag_name') or data.get('name') or '').strip()
|
latest = (data.get('tag_name') or data.get('name') or '').strip()
|
||||||
html_url = (data.get('html_url') or f'{RELEASES_REPO_URL}/releases').strip()
|
html_url = (data.get('html_url') or f'{RELEASES_REPO_URL}/releases').strip()
|
||||||
|
body = (data.get('body') or '')[:4000]
|
||||||
current = CURRENT_VERSION
|
current = CURRENT_VERSION
|
||||||
update_available = bool(latest) and latest != current
|
update_available = bool(latest) and version_gt(latest, current)
|
||||||
return {
|
return {
|
||||||
'current_version': current,
|
'current_version': current,
|
||||||
'latest_version': latest,
|
'latest_version': latest,
|
||||||
'update_available': update_available,
|
'update_available': update_available,
|
||||||
'html_url': html_url,
|
'html_url': html_url,
|
||||||
'releases_url': f'{RELEASES_REPO_URL}/releases',
|
'releases_url': f'{RELEASES_REPO_URL}/releases',
|
||||||
|
'body': body,
|
||||||
|
'can_auto_update': bool(mode.get('can_auto_update')),
|
||||||
|
'update_mode': mode.get('update_method') or mode.get('mode'),
|
||||||
|
'mode': mode,
|
||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception('Error checking for updates')
|
logger.exception('Error checking for updates')
|
||||||
return JSONResponse({'error': str(e)}, status_code=502)
|
return JSONResponse({'error': str(e)}, status_code=502)
|
||||||
|
|
||||||
|
|
||||||
|
async def _fetch_latest_release_tag() -> str:
|
||||||
|
async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:
|
||||||
|
resp = await client.get(RELEASES_API_LATEST, headers={'Accept': 'application/json'})
|
||||||
|
if resp.status_code >= 400:
|
||||||
|
raise RuntimeError(f'Release API returned HTTP {resp.status_code}')
|
||||||
|
data = resp.json() if resp.content else {}
|
||||||
|
return (data.get('tag_name') or data.get('name') or '').strip()
|
||||||
|
|
||||||
|
|
||||||
|
@app.post('/api/settings/apply_update', tags=["Settings"])
|
||||||
|
async def api_apply_update(request: Request, req: ApplyUpdateRequest):
|
||||||
|
"""Install a release tag (git checkout or archive download) and restart the panel."""
|
||||||
|
if not _check_admin(request):
|
||||||
|
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
||||||
|
updater = UpdateManager(application_path, CURRENT_VERSION)
|
||||||
|
target = (req.target_version or '').strip()
|
||||||
|
if not target:
|
||||||
|
try:
|
||||||
|
target = await _fetch_latest_release_tag()
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception('Failed to resolve latest tag for apply_update')
|
||||||
|
return JSONResponse({'error': str(e)}, status_code=502)
|
||||||
|
if not target:
|
||||||
|
return JSONResponse({'error': 'No target version specified'}, status_code=400)
|
||||||
|
|
||||||
|
result = await asyncio.to_thread(
|
||||||
|
updater.apply_update,
|
||||||
|
target,
|
||||||
|
bool(req.allow_dirty),
|
||||||
|
)
|
||||||
|
if result.get('status') != 'success':
|
||||||
|
status_code = 409 if result.get('needs_confirm_dirty') else 500
|
||||||
|
return JSONResponse({'error': result.get('message') or 'Update failed', **result}, status_code=status_code)
|
||||||
|
|
||||||
|
if result.get('restart'):
|
||||||
|
UpdateManager.schedule_restart(1.5)
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
@app.post('/api/settings/upgrade_panel', tags=["Settings"])
|
||||||
|
async def api_upgrade_panel(request: Request):
|
||||||
|
"""One-click: fetch latest release, install if newer, restart."""
|
||||||
|
if not _check_admin(request):
|
||||||
|
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
||||||
|
updater = UpdateManager(application_path, CURRENT_VERSION)
|
||||||
|
mode = updater.detect_mode()
|
||||||
|
if not mode.get('can_auto_update'):
|
||||||
|
return JSONResponse({
|
||||||
|
'error': (
|
||||||
|
'In-panel update is not available for this install. '
|
||||||
|
'Use git clone / writable app directory, or rebuild Docker on the host.'
|
||||||
|
),
|
||||||
|
'mode': mode,
|
||||||
|
}, status_code=400)
|
||||||
|
try:
|
||||||
|
latest = await _fetch_latest_release_tag()
|
||||||
|
except Exception as e:
|
||||||
|
return JSONResponse({'error': str(e)}, status_code=502)
|
||||||
|
if not latest:
|
||||||
|
return JSONResponse({'error': 'Could not resolve latest release tag'}, status_code=502)
|
||||||
|
if not version_gt(latest, CURRENT_VERSION):
|
||||||
|
return {
|
||||||
|
'status': 'success',
|
||||||
|
'up_to_date': True,
|
||||||
|
'current_version': CURRENT_VERSION,
|
||||||
|
'latest_version': latest,
|
||||||
|
'message': 'Already on the latest version',
|
||||||
|
}
|
||||||
|
|
||||||
|
result = await asyncio.to_thread(updater.apply_update, latest, True)
|
||||||
|
if result.get('status') != 'success':
|
||||||
|
return JSONResponse({'error': result.get('message') or 'Update failed', **result}, status_code=500)
|
||||||
|
if result.get('restart'):
|
||||||
|
UpdateManager.schedule_restart(1.5)
|
||||||
|
result['up_to_date'] = False
|
||||||
|
result['previous_version'] = CURRENT_VERSION
|
||||||
|
return result
|
||||||
|
|
||||||
|
|
||||||
@app.get('/api/settings/tunnels/status', tags=["Settings"])
|
@app.get('/api/settings/tunnels/status', tags=["Settings"])
|
||||||
async def api_tunnels_status(request: Request):
|
async def api_tunnels_status(request: Request):
|
||||||
if not _check_admin(request):
|
if not _check_admin(request):
|
||||||
@@ -5534,6 +5778,7 @@ async def api_tunnels_status(request: Request):
|
|||||||
'cloudflare': get_tunnel_status('cloudflare'),
|
'cloudflare': get_tunnel_status('cloudflare'),
|
||||||
'ngrok': get_tunnel_status('ngrok'),
|
'ngrok': get_tunnel_status('ngrok'),
|
||||||
'warp': get_warp_status(),
|
'warp': get_warp_status(),
|
||||||
|
'nordvpn': get_nordvpn_status(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -5619,6 +5864,28 @@ async def api_warp_disconnect(request: Request):
|
|||||||
return JSONResponse({'error': str(e)}, status_code=500)
|
return JSONResponse({'error': str(e)}, status_code=500)
|
||||||
|
|
||||||
|
|
||||||
|
@app.post('/api/settings/nordvpn/connect', tags=["Settings"])
|
||||||
|
async def api_nordvpn_connect(request: Request, req: NordvpnConnectRequest = NordvpnConnectRequest()):
|
||||||
|
if not _check_admin(request):
|
||||||
|
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
||||||
|
try:
|
||||||
|
return await asyncio.to_thread(enable_nordvpn, req.country or '', req.city or '')
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception("Error connecting NordVPN")
|
||||||
|
return JSONResponse({'error': str(e)}, status_code=500)
|
||||||
|
|
||||||
|
|
||||||
|
@app.post('/api/settings/nordvpn/disconnect', tags=["Settings"])
|
||||||
|
async def api_nordvpn_disconnect(request: Request):
|
||||||
|
if not _check_admin(request):
|
||||||
|
return JSONResponse({'error': 'Forbidden'}, status_code=403)
|
||||||
|
try:
|
||||||
|
return await asyncio.to_thread(disable_nordvpn)
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception("Error disconnecting NordVPN")
|
||||||
|
return JSONResponse({'error': str(e)}, status_code=500)
|
||||||
|
|
||||||
|
|
||||||
# @app.post('/api/settings/save')
|
# @app.post('/api/settings/save')
|
||||||
# async def api_save_settings(request: Request, body: SaveSettingsRequest):
|
# async def api_save_settings(request: Request, body: SaveSettingsRequest):
|
||||||
# _check_admin(request)
|
# _check_admin(request)
|
||||||
|
|||||||
@@ -232,9 +232,13 @@ class NaiveProxyManager:
|
|||||||
# Keep a non-shared bootstrap user so the proxy is never open
|
# Keep a non-shared bootstrap user so the proxy is never open
|
||||||
auth_lines = [f' basic_auth bootstrap {_rand_token(24)}']
|
auth_lines = [f' basic_auth bootstrap {_rand_token(24)}']
|
||||||
auth_block = '\n'.join(auth_lines)
|
auth_block = '\n'.join(auth_lines)
|
||||||
|
# probe_resistance looks like a fake domain to browsers
|
||||||
probe = (probe_path or _rand_token(12)).strip('/')
|
probe = (probe_path or _rand_token(12)).strip('/')
|
||||||
|
if '.' not in probe:
|
||||||
|
probe = f'{probe}.com'
|
||||||
return f"""{{
|
return f"""{{
|
||||||
order forward_proxy before file_server
|
order forward_proxy before file_server
|
||||||
|
admin off
|
||||||
log {{
|
log {{
|
||||||
exclude http.log.error
|
exclude http.log.error
|
||||||
}}
|
}}
|
||||||
@@ -242,7 +246,6 @@ class NaiveProxyManager:
|
|||||||
:443, {domain} {{
|
:443, {domain} {{
|
||||||
tls {email}
|
tls {email}
|
||||||
encode
|
encode
|
||||||
route {{
|
|
||||||
forward_proxy {{
|
forward_proxy {{
|
||||||
{auth_block}
|
{auth_block}
|
||||||
hide_ip
|
hide_ip
|
||||||
@@ -253,7 +256,6 @@ class NaiveProxyManager:
|
|||||||
root /var/www/html
|
root /var/www/html
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
}}
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _write_config_from_clients(self):
|
def _write_config_from_clients(self):
|
||||||
@@ -398,13 +400,21 @@ CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile
|
|||||||
self._start_container()
|
self._start_container()
|
||||||
|
|
||||||
def _build_share_uri(self, domain, username, password, name, port=443):
|
def _build_share_uri(self, domain, username, password, name, port=443):
|
||||||
|
"""v2rayN / NekoRay / sing-box compatible share link.
|
||||||
|
|
||||||
|
Always include an explicit port — without `:443` v2rayN often treats
|
||||||
|
the port as empty/80 and shows «Свойство Порт недопустимо» / SSL errors.
|
||||||
|
"""
|
||||||
|
# Keep credentials unescaped when alphanumeric (our generator); quote otherwise.
|
||||||
user = quote(username or '', safe='')
|
user = quote(username or '', safe='')
|
||||||
pw = quote(password or '', safe='')
|
pw = quote(password or '', safe='')
|
||||||
host = domain or ''
|
host = (domain or '').strip().lower()
|
||||||
port = int(port or 443)
|
port = int(port or 443)
|
||||||
authority = f'{user}:{pw}@{host}' if port == 443 else f'{user}:{pw}@{host}:{port}'
|
if port < 1 or port > 65535:
|
||||||
fragment = quote(name or 'naiveproxy', safe='')
|
port = 443
|
||||||
return f'naive+https://{authority}#{fragment}'
|
# Remark: ASCII-safe, no spaces that break some importers
|
||||||
|
remark = re.sub(r'[^\w.\-]+', '-', (name or 'naiveproxy').strip())[:48] or 'naiveproxy'
|
||||||
|
return f'naive+https://{user}:{pw}@{host}:{port}#{remark}'
|
||||||
|
|
||||||
# ===================== INSTALL / REMOVE =====================
|
# ===================== INSTALL / REMOVE =====================
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,397 @@
|
|||||||
|
"""Panel self-update from the EvilFox Gitea repository (git or release archive)."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import logging
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import tempfile
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
import urllib.error
|
||||||
|
import urllib.request
|
||||||
|
import zipfile
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
DEFAULT_REPO_URL = 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main'
|
||||||
|
DEFAULT_GIT_URL = 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main.git'
|
||||||
|
DEFAULT_API_LATEST = 'https://git.evilfox.cc/api/v1/repos/test2/Amnezia-Web-Panel-main/releases/latest'
|
||||||
|
UPDATE_REMOTE = 'panel-update'
|
||||||
|
|
||||||
|
ARCHIVE_SKIP_DIRS = frozenset({
|
||||||
|
'__pycache__', '.git', 'bin', 'data', 'node_modules', '.venv', 'venv', '.cursor',
|
||||||
|
})
|
||||||
|
ARCHIVE_SKIP_FILES = frozenset({
|
||||||
|
'.env', 'data.json', 'tunnels_state.json',
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
def _env(name: str, default: str) -> str:
|
||||||
|
return (os.environ.get(name) or default).strip()
|
||||||
|
|
||||||
|
|
||||||
|
def repo_url() -> str:
|
||||||
|
return _env('PANEL_UPDATE_REPO_URL', DEFAULT_REPO_URL).rstrip('/')
|
||||||
|
|
||||||
|
|
||||||
|
def git_url() -> str:
|
||||||
|
return _env('PANEL_UPDATE_GIT_URL', DEFAULT_GIT_URL)
|
||||||
|
|
||||||
|
|
||||||
|
def api_latest_url() -> str:
|
||||||
|
return _env('PANEL_UPDATE_API_LATEST', DEFAULT_API_LATEST)
|
||||||
|
|
||||||
|
|
||||||
|
def parse_version(value: str) -> tuple:
|
||||||
|
"""Parse semver-ish tags like v2.3.0 / 2.3.0-beta into a comparable tuple."""
|
||||||
|
raw = (value or '').strip()
|
||||||
|
if not raw:
|
||||||
|
return (0, 0, 0, 1, '')
|
||||||
|
raw = raw.lstrip('vV')
|
||||||
|
main, _, pre = raw.partition('-')
|
||||||
|
parts = []
|
||||||
|
for piece in main.split('.'):
|
||||||
|
if piece.isdigit():
|
||||||
|
parts.append(int(piece))
|
||||||
|
else:
|
||||||
|
m = re.match(r'(\d+)', piece or '')
|
||||||
|
parts.append(int(m.group(1)) if m else 0)
|
||||||
|
while len(parts) < 3:
|
||||||
|
parts.append(0)
|
||||||
|
pre_rank = 0 if not pre else 1
|
||||||
|
return (parts[0], parts[1], parts[2], pre_rank, pre)
|
||||||
|
|
||||||
|
|
||||||
|
def version_gt(a: str, b: str) -> bool:
|
||||||
|
return parse_version(a) > parse_version(b)
|
||||||
|
|
||||||
|
|
||||||
|
def normalize_tag(value: str) -> str:
|
||||||
|
tag = (value or '').strip()
|
||||||
|
if not tag:
|
||||||
|
return ''
|
||||||
|
return tag if tag.startswith('v') else f'v{tag}'
|
||||||
|
|
||||||
|
|
||||||
|
def _run(cmd: list, cwd: str, timeout: int = 120) -> tuple[int, str, str]:
|
||||||
|
try:
|
||||||
|
proc = subprocess.run(
|
||||||
|
cmd,
|
||||||
|
cwd=cwd,
|
||||||
|
capture_output=True,
|
||||||
|
text=True,
|
||||||
|
timeout=timeout,
|
||||||
|
encoding='utf-8',
|
||||||
|
errors='replace',
|
||||||
|
)
|
||||||
|
return proc.returncode, (proc.stdout or '').strip(), (proc.stderr or '').strip()
|
||||||
|
except FileNotFoundError:
|
||||||
|
return 127, '', f'Command not found: {cmd[0]}'
|
||||||
|
except subprocess.TimeoutExpired:
|
||||||
|
return 124, '', f'Timeout running: {" ".join(cmd)}'
|
||||||
|
|
||||||
|
|
||||||
|
class UpdateManager:
|
||||||
|
def __init__(self, app_root: str, current_version: str):
|
||||||
|
self.app_root = os.path.abspath(app_root)
|
||||||
|
self.current_version = current_version
|
||||||
|
|
||||||
|
def _in_docker(self) -> bool:
|
||||||
|
return os.path.exists('/.dockerenv') or os.environ.get('PANEL_IN_DOCKER') == '1'
|
||||||
|
|
||||||
|
def _docker_update_allowed(self) -> bool:
|
||||||
|
if os.environ.get('PANEL_UPDATE_DISABLE_DOCKER', '').strip().lower() in ('1', 'true', 'yes'):
|
||||||
|
return False
|
||||||
|
# In-container archive updates are allowed by default when /app is writable.
|
||||||
|
return True
|
||||||
|
|
||||||
|
def _app_root_writable(self) -> bool:
|
||||||
|
probe = os.path.join(self.app_root, '.panel_update_write_probe')
|
||||||
|
try:
|
||||||
|
with open(probe, 'w', encoding='utf-8') as fh:
|
||||||
|
fh.write('ok')
|
||||||
|
os.remove(probe)
|
||||||
|
return True
|
||||||
|
except OSError:
|
||||||
|
return False
|
||||||
|
|
||||||
|
def detect_mode(self) -> dict:
|
||||||
|
frozen = bool(getattr(sys, 'frozen', False))
|
||||||
|
in_docker = self._in_docker()
|
||||||
|
git_dir = os.path.join(self.app_root, '.git')
|
||||||
|
is_git = os.path.isdir(git_dir)
|
||||||
|
git_ok = False
|
||||||
|
if is_git and not frozen:
|
||||||
|
code, _, _ = _run(['git', '--version'], self.app_root, timeout=10)
|
||||||
|
git_ok = code == 0
|
||||||
|
|
||||||
|
writable = self._app_root_writable()
|
||||||
|
can_git = bool(git_ok and is_git and not frozen)
|
||||||
|
can_archive = bool(
|
||||||
|
writable
|
||||||
|
and not frozen
|
||||||
|
and (not in_docker or self._docker_update_allowed())
|
||||||
|
)
|
||||||
|
can_auto = can_git or can_archive
|
||||||
|
|
||||||
|
if can_git:
|
||||||
|
method = 'git'
|
||||||
|
elif can_archive:
|
||||||
|
method = 'archive'
|
||||||
|
elif in_docker:
|
||||||
|
method = 'docker'
|
||||||
|
elif frozen:
|
||||||
|
method = 'binary'
|
||||||
|
else:
|
||||||
|
method = 'manual'
|
||||||
|
|
||||||
|
return {
|
||||||
|
'mode': method,
|
||||||
|
'update_method': method,
|
||||||
|
'can_auto_update': can_auto,
|
||||||
|
'can_git_update': can_git,
|
||||||
|
'can_archive_update': can_archive,
|
||||||
|
'is_git': is_git,
|
||||||
|
'frozen': frozen,
|
||||||
|
'in_docker': in_docker,
|
||||||
|
'writable': writable,
|
||||||
|
'app_root': self.app_root,
|
||||||
|
'repo_url': repo_url(),
|
||||||
|
'git_url': git_url(),
|
||||||
|
}
|
||||||
|
|
||||||
|
def _ensure_update_remote(self) -> Optional[str]:
|
||||||
|
code, out, err = _run(['git', 'remote'], self.app_root, timeout=15)
|
||||||
|
if code != 0:
|
||||||
|
return err or out or 'git remote failed'
|
||||||
|
remotes = set((out or '').split())
|
||||||
|
target = git_url()
|
||||||
|
if UPDATE_REMOTE in remotes:
|
||||||
|
code, _, err = _run(
|
||||||
|
['git', 'remote', 'set-url', UPDATE_REMOTE, target],
|
||||||
|
self.app_root,
|
||||||
|
timeout=15,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
code, _, err = _run(
|
||||||
|
['git', 'remote', 'add', UPDATE_REMOTE, target],
|
||||||
|
self.app_root,
|
||||||
|
timeout=15,
|
||||||
|
)
|
||||||
|
if code != 0:
|
||||||
|
return err or 'Failed to configure update remote'
|
||||||
|
return None
|
||||||
|
|
||||||
|
def working_tree_dirty(self) -> bool:
|
||||||
|
code, out, _ = _run(['git', 'status', '--porcelain'], self.app_root, timeout=30)
|
||||||
|
return code == 0 and bool(out.strip())
|
||||||
|
|
||||||
|
def _pip_install(self) -> tuple[bool, str]:
|
||||||
|
req = os.path.join(self.app_root, 'requirements.txt')
|
||||||
|
if not os.path.isfile(req):
|
||||||
|
return True, ''
|
||||||
|
code_p, out_p, err_p = _run(
|
||||||
|
[sys.executable, '-m', 'pip', 'install', '-r', req],
|
||||||
|
self.app_root,
|
||||||
|
timeout=300,
|
||||||
|
)
|
||||||
|
log = (out_p or err_p or '')[:1500]
|
||||||
|
return code_p == 0, log
|
||||||
|
|
||||||
|
def _apply_git_update(self, target: str, allow_dirty: bool) -> dict:
|
||||||
|
if not allow_dirty and self.working_tree_dirty():
|
||||||
|
return {
|
||||||
|
'status': 'error',
|
||||||
|
'message': (
|
||||||
|
'Working tree has local changes. Confirm update anyway to force checkout, '
|
||||||
|
'or commit/stash changes first.'
|
||||||
|
),
|
||||||
|
'needs_confirm_dirty': True,
|
||||||
|
}
|
||||||
|
|
||||||
|
err = self._ensure_update_remote()
|
||||||
|
if err:
|
||||||
|
return {'status': 'error', 'message': err}
|
||||||
|
|
||||||
|
code, out, stderr = _run(
|
||||||
|
['git', 'fetch', '--tags', '--force', UPDATE_REMOTE],
|
||||||
|
self.app_root,
|
||||||
|
timeout=180,
|
||||||
|
)
|
||||||
|
if code != 0:
|
||||||
|
return {'status': 'error', 'message': f'git fetch failed: {stderr or out or code}'}
|
||||||
|
|
||||||
|
# Ensure tag is present locally
|
||||||
|
code, _, _ = _run(
|
||||||
|
['git', 'rev-parse', '-q', '--verify', f'refs/tags/{target}'],
|
||||||
|
self.app_root,
|
||||||
|
timeout=15,
|
||||||
|
)
|
||||||
|
if code != 0:
|
||||||
|
_run(
|
||||||
|
['git', 'fetch', '--depth', '1', UPDATE_REMOTE, f'refs/tags/{target}:refs/tags/{target}'],
|
||||||
|
self.app_root,
|
||||||
|
timeout=120,
|
||||||
|
)
|
||||||
|
|
||||||
|
checkout_ref = f'tags/{target}'
|
||||||
|
code, out, stderr = _run(
|
||||||
|
['git', 'checkout', '--force', checkout_ref],
|
||||||
|
self.app_root,
|
||||||
|
timeout=60,
|
||||||
|
)
|
||||||
|
if code != 0:
|
||||||
|
code_m, out_m, err_m = _run(
|
||||||
|
['git', 'checkout', '--force', '-B', 'main', f'{UPDATE_REMOTE}/main'],
|
||||||
|
self.app_root,
|
||||||
|
timeout=60,
|
||||||
|
)
|
||||||
|
if code_m != 0:
|
||||||
|
return {
|
||||||
|
'status': 'error',
|
||||||
|
'message': f'git checkout {target} failed: {stderr or out or err_m or out_m}',
|
||||||
|
}
|
||||||
|
checkout_ref = f'{UPDATE_REMOTE}/main'
|
||||||
|
|
||||||
|
ok, pip_log = self._pip_install()
|
||||||
|
if not ok:
|
||||||
|
return {
|
||||||
|
'status': 'error',
|
||||||
|
'message': f'pip install failed after checkout: {pip_log[:500]}',
|
||||||
|
'checkout': checkout_ref,
|
||||||
|
'method': 'git',
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'status': 'success',
|
||||||
|
'message': f'Updated to {target} via git. Panel will restart.',
|
||||||
|
'target_version': target,
|
||||||
|
'checkout': checkout_ref,
|
||||||
|
'pip': pip_log[:500],
|
||||||
|
'method': 'git',
|
||||||
|
'restart': True,
|
||||||
|
}
|
||||||
|
|
||||||
|
def _archive_urls(self, tag: str) -> list[str]:
|
||||||
|
base = repo_url()
|
||||||
|
return [
|
||||||
|
f'{base}/archive/{tag}.zip',
|
||||||
|
f'{base}/archive/{tag.lstrip("v")}.zip',
|
||||||
|
f'{api_latest_url().rsplit("/releases/latest", 1)[0]}/archive/{tag}.zip',
|
||||||
|
]
|
||||||
|
|
||||||
|
def _download_archive(self, tag: str, dest_path: str) -> None:
|
||||||
|
last_err = 'unknown error'
|
||||||
|
for url in self._archive_urls(tag):
|
||||||
|
try:
|
||||||
|
req = urllib.request.Request(url, headers={'User-Agent': 'Amnezia-Web-Panel-Updater'})
|
||||||
|
with urllib.request.urlopen(req, timeout=180) as resp:
|
||||||
|
with open(dest_path, 'wb') as out:
|
||||||
|
shutil.copyfileobj(resp, out)
|
||||||
|
if os.path.getsize(dest_path) > 1024:
|
||||||
|
return
|
||||||
|
last_err = f'empty archive from {url}'
|
||||||
|
except urllib.error.HTTPError as e:
|
||||||
|
last_err = f'HTTP {e.code} for {url}'
|
||||||
|
except Exception as e:
|
||||||
|
last_err = str(e)
|
||||||
|
raise RuntimeError(f'Failed to download release archive: {last_err}')
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _extract_zip_root(extract_dir: str) -> str:
|
||||||
|
entries = [e for e in os.listdir(extract_dir) if e not in ('.', '..')]
|
||||||
|
if len(entries) == 1:
|
||||||
|
only = os.path.join(extract_dir, entries[0])
|
||||||
|
if os.path.isdir(only):
|
||||||
|
return only
|
||||||
|
return extract_dir
|
||||||
|
|
||||||
|
def _sync_tree(self, src_root: str) -> None:
|
||||||
|
for root, dirs, files in os.walk(src_root):
|
||||||
|
dirs[:] = [d for d in dirs if d not in ARCHIVE_SKIP_DIRS]
|
||||||
|
rel = os.path.relpath(root, src_root)
|
||||||
|
dest_root = self.app_root if rel in ('.', '') else os.path.join(self.app_root, rel)
|
||||||
|
os.makedirs(dest_root, exist_ok=True)
|
||||||
|
for fname in files:
|
||||||
|
if fname in ARCHIVE_SKIP_FILES:
|
||||||
|
continue
|
||||||
|
src_file = os.path.join(root, fname)
|
||||||
|
dest_file = os.path.join(dest_root, fname)
|
||||||
|
shutil.copy2(src_file, dest_file)
|
||||||
|
|
||||||
|
def _apply_archive_update(self, target: str) -> dict:
|
||||||
|
tmpdir = tempfile.mkdtemp(prefix='panel-update-')
|
||||||
|
zip_path = os.path.join(tmpdir, f'{target}.zip')
|
||||||
|
extract_dir = os.path.join(tmpdir, 'extract')
|
||||||
|
try:
|
||||||
|
self._download_archive(target, zip_path)
|
||||||
|
os.makedirs(extract_dir, exist_ok=True)
|
||||||
|
with zipfile.ZipFile(zip_path, 'r') as zf:
|
||||||
|
zf.extractall(extract_dir)
|
||||||
|
src_root = self._extract_zip_root(extract_dir)
|
||||||
|
if not os.path.isdir(src_root):
|
||||||
|
return {'status': 'error', 'message': 'Invalid release archive layout'}
|
||||||
|
self._sync_tree(src_root)
|
||||||
|
except Exception as e:
|
||||||
|
return {'status': 'error', 'message': str(e), 'method': 'archive'}
|
||||||
|
finally:
|
||||||
|
shutil.rmtree(tmpdir, ignore_errors=True)
|
||||||
|
|
||||||
|
ok, pip_log = self._pip_install()
|
||||||
|
if not ok:
|
||||||
|
return {
|
||||||
|
'status': 'error',
|
||||||
|
'message': f'Files updated but pip install failed: {pip_log[:500]}',
|
||||||
|
'method': 'archive',
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'status': 'success',
|
||||||
|
'message': f'Updated to {target} from release archive. Panel will restart.',
|
||||||
|
'target_version': target,
|
||||||
|
'pip': pip_log[:500],
|
||||||
|
'method': 'archive',
|
||||||
|
'restart': True,
|
||||||
|
}
|
||||||
|
|
||||||
|
def apply_update(self, target_version: str, allow_dirty: bool = False) -> dict:
|
||||||
|
mode = self.detect_mode()
|
||||||
|
target = normalize_tag(target_version)
|
||||||
|
if not target or not re.match(r'^v\d+(\.\d+){0,3}([.-][\w.]+)?$', target):
|
||||||
|
return {'status': 'error', 'message': f'Invalid target version: {target_version}'}
|
||||||
|
|
||||||
|
if mode.get('can_git_update'):
|
||||||
|
return self._apply_git_update(target, allow_dirty)
|
||||||
|
if mode.get('can_archive_update'):
|
||||||
|
return self._apply_archive_update(target)
|
||||||
|
|
||||||
|
hint = (
|
||||||
|
'Cannot update from inside this install. '
|
||||||
|
'Use a git clone or writable source directory, or rebuild the Docker image on the host.'
|
||||||
|
)
|
||||||
|
if mode.get('in_docker'):
|
||||||
|
hint = (
|
||||||
|
'Docker image install: on the host run '
|
||||||
|
'`git pull && docker compose up -d --build` '
|
||||||
|
'(or set PANEL_UPDATE_ALLOW_DOCKER=1 if /app is bind-mounted).'
|
||||||
|
)
|
||||||
|
return {'status': 'error', 'message': hint, 'mode': mode}
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def schedule_restart(delay_sec: float = 1.5) -> None:
|
||||||
|
def _restart():
|
||||||
|
time.sleep(max(0.5, float(delay_sec)))
|
||||||
|
try:
|
||||||
|
argv = [sys.executable] + sys.argv
|
||||||
|
logger.info('Restarting panel after update: %s', argv)
|
||||||
|
os.execv(sys.executable, argv)
|
||||||
|
except Exception:
|
||||||
|
logger.exception('Failed to restart after update; exiting')
|
||||||
|
os._exit(0)
|
||||||
|
|
||||||
|
threading.Thread(target=_restart, name='panel-update-restart', daemon=False).start()
|
||||||
@@ -1623,6 +1623,319 @@ a:hover {
|
|||||||
gap: var(--space-md);
|
gap: var(--space-md);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ===== Tunnels (Settings) ===== */
|
||||||
|
.tunnels-card .tunnels-header {
|
||||||
|
margin-bottom: var(--space-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-card .tunnels-header .card-title {
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-card .tunnels-subtitle {
|
||||||
|
margin: var(--space-xs) 0 0;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.45;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-md);
|
||||||
|
padding: var(--space-md) var(--space-lg);
|
||||||
|
margin-bottom: var(--space-lg);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
border: 1px solid var(--border-focus);
|
||||||
|
background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.06));
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-icon {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
background: var(--accent-gradient);
|
||||||
|
font-size: 1.25rem;
|
||||||
|
box-shadow: var(--shadow-glow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-body {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-label {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
font-weight: 600;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.04em;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin-bottom: var(--space-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-url {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-url code {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-primary);
|
||||||
|
background: transparent;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-section {
|
||||||
|
margin-bottom: var(--space-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-section:last-of-type {
|
||||||
|
margin-bottom: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-section-title {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 700;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: 0 0 var(--space-sm) var(--space-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||||
|
gap: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--space-md);
|
||||||
|
padding: var(--space-md);
|
||||||
|
border-radius: var(--radius-md);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
background: var(--bg-primary);
|
||||||
|
transition: border-color var(--transition-base), box-shadow var(--transition-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card:hover {
|
||||||
|
border-color: var(--border-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card--running {
|
||||||
|
border-color: var(--success-border);
|
||||||
|
box-shadow: 0 0 0 1px var(--success-border), inset 0 1px 0 rgba(34, 197, 94, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card--connected {
|
||||||
|
border-color: var(--success-border);
|
||||||
|
box-shadow: 0 0 0 1px var(--success-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-head {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: var(--space-md);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-icon {
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-icon--cloudflare { background: linear-gradient(135deg, #f38020, #faae40); }
|
||||||
|
.tunnel-card-icon--ngrok { background: linear-gradient(135deg, #1f2d3d, #3d5a80); }
|
||||||
|
.tunnel-card-icon--warp { background: linear-gradient(135deg, #f38020, #e85d04); }
|
||||||
|
.tunnel-card-icon--nordvpn { background: linear-gradient(135deg, #4687ff, #2b4eff); }
|
||||||
|
.tunnel-card-icon--local { background: var(--accent-gradient); }
|
||||||
|
|
||||||
|
.tunnel-card-meta {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-title {
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-desc {
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
margin: var(--space-xs) 0 0;
|
||||||
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-status-pill {
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: var(--radius-full);
|
||||||
|
white-space: nowrap;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
color: var(--text-secondary);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-status-pill--ok {
|
||||||
|
background: var(--success-bg);
|
||||||
|
color: var(--success);
|
||||||
|
border-color: var(--success-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-status-pill--info {
|
||||||
|
background: var(--info-bg);
|
||||||
|
color: var(--info);
|
||||||
|
border-color: rgba(59, 130, 246, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-url-box {
|
||||||
|
padding: var(--space-sm) var(--space-md);
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border: 1px dashed var(--border-color);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.45;
|
||||||
|
min-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-url-box--empty {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-url-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
margin-top: var(--space-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-url-row:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-url-row code {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--text-accent);
|
||||||
|
background: transparent;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-status-line {
|
||||||
|
font-size: 0.82rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.45;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-status-line--server {
|
||||||
|
font-family: ui-monospace, monospace;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
color: var(--text-accent);
|
||||||
|
padding: var(--space-xs) var(--space-sm);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-hint {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
line-height: 1.4;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-actions {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-actions .btn {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 7rem;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-card-actions--triple .btn {
|
||||||
|
min-width: 5.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-nordvpn-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-footnote {
|
||||||
|
margin: var(--space-md) 0 0;
|
||||||
|
padding: var(--space-md);
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-left: 3px solid var(--accent);
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.tunnels-local {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: stretch;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-local-url {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnels-grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tunnel-nordvpn-fields {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mt-md {
|
.mt-md {
|
||||||
margin-top: var(--space-md);
|
margin-top: var(--space-md);
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-3
@@ -1,4 +1,4 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% from "macros/icons.html" import icon %}
|
{% from "macros/icons.html" import icon %}
|
||||||
|
|
||||||
{% block title_extra %} — {{ server.name }}{% endblock %}
|
{% block title_extra %} — {{ server.name }}{% endblock %}
|
||||||
@@ -325,7 +325,8 @@
|
|||||||
<div class="protocol-icon">{{ icon('link') }}</div>
|
<div class="protocol-icon">{{ icon('link') }}</div>
|
||||||
<div class="flex gap-sm" id="naiveproxy-ctrl" style="display:none!important;"></div>
|
<div class="flex gap-sm" id="naiveproxy-ctrl" style="display:none!important;"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="protocol-name">NaiveProxy</div>
|
<div class="protocol-name">NaiveProxy <span
|
||||||
|
style="font-size:0.65rem; background:var(--success, #16a34a); color:#fff; padding:2px 6px; border-radius:8px; vertical-align:middle;">STABLE</span></div>
|
||||||
<div class="protocol-desc">
|
<div class="protocol-desc">
|
||||||
{{ _('naiveproxy_desc') }}
|
{{ _('naiveproxy_desc') }}
|
||||||
</div>
|
</div>
|
||||||
@@ -743,6 +744,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-hint">{{ _('naiveproxy_install_hint') }}</div>
|
<div class="form-hint">{{ _('naiveproxy_install_hint') }}</div>
|
||||||
<div class="form-hint" style="margin-top: var(--space-sm);">{{ _('naiveproxy_port_hint') }}</div>
|
<div class="form-hint" style="margin-top: var(--space-sm);">{{ _('naiveproxy_port_hint') }}</div>
|
||||||
|
<div class="form-hint" style="margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); background: rgba(234,179,8,0.12); border: 1px solid rgba(234,179,8,0.35);">{{ _('naiveproxy_client_hint') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
@@ -986,6 +988,7 @@
|
|||||||
<div class="config-panel active" id="panel-conf">
|
<div class="config-panel active" id="panel-conf">
|
||||||
<div class="config-display">
|
<div class="config-display">
|
||||||
<div class="config-text" id="configText"></div>
|
<div class="config-text" id="configText"></div>
|
||||||
|
<div class="form-hint hidden" id="configClientHint" style="margin-top: var(--space-sm);"></div>
|
||||||
<div class="config-actions">
|
<div class="config-actions">
|
||||||
<button class="btn btn-secondary btn-sm" onclick="copyToClipboard(currentConfig)" style="flex:1">
|
<button class="btn btn-secondary btn-sm" onclick="copyToClipboard(currentConfig)" style="flex:1">
|
||||||
{{ _('copy') }}
|
{{ _('copy') }}
|
||||||
@@ -1097,7 +1100,7 @@
|
|||||||
{ proto: 'xray', category: 'protocols', icon: 'zap', title: 'Xray (VLESS-Reality)', descKey: 'xray_desc' },
|
{ proto: 'xray', category: 'protocols', icon: 'zap', title: 'Xray (VLESS-Reality)', descKey: 'xray_desc' },
|
||||||
{ proto: 'telemt', category: 'protocols', icon: 'plane', title: 'Telemt (Telegram Proxy)', descKey: 'telemt_desc' },
|
{ proto: 'telemt', category: 'protocols', icon: 'plane', title: 'Telemt (Telegram Proxy)', descKey: 'telemt_desc' },
|
||||||
{ proto: 'hysteria', category: 'protocols', icon: 'refresh', title: 'Hysteria 2', descKey: 'hysteria_desc' },
|
{ proto: 'hysteria', category: 'protocols', icon: 'refresh', title: 'Hysteria 2', descKey: 'hysteria_desc' },
|
||||||
{ proto: 'naiveproxy', category: 'protocols', icon: 'link', title: 'NaiveProxy', descKey: 'naiveproxy_desc' },
|
{ proto: 'naiveproxy', category: 'protocols', icon: 'link', title: 'NaiveProxy', descKey: 'naiveproxy_desc', badge: 'STABLE' },
|
||||||
{ proto: 'wireguard', category: 'protocols', icon: 'lock', title: 'WireGuard', descKey: 'wireguard_desc' },
|
{ proto: 'wireguard', category: 'protocols', icon: 'lock', title: 'WireGuard', descKey: 'wireguard_desc' },
|
||||||
{ proto: 'dns', category: 'services', icon: 'search', title: 'AmneziaDNS', descKey: 'dns_desc' },
|
{ proto: 'dns', category: 'services', icon: 'search', title: 'AmneziaDNS', descKey: 'dns_desc' },
|
||||||
{ proto: 'adguard', category: 'services', icon: 'shield-check', title: 'AdGuard Home', descKey: 'adguard_desc' },
|
{ proto: 'adguard', category: 'services', icon: 'shield-check', title: 'AdGuard Home', descKey: 'adguard_desc' },
|
||||||
@@ -2840,6 +2843,16 @@
|
|||||||
document.getElementById('configModalTitle').textContent = `${_('config')} — ${connName}`;
|
document.getElementById('configModalTitle').textContent = `${_('config')} — ${connName}`;
|
||||||
document.getElementById('configText').textContent = result.config;
|
document.getElementById('configText').textContent = result.config;
|
||||||
document.getElementById('vpnLinkText').textContent = currentVpnLink;
|
document.getElementById('vpnLinkText').textContent = currentVpnLink;
|
||||||
|
const hintEl = document.getElementById('configClientHint');
|
||||||
|
if (hintEl) {
|
||||||
|
if (protoBase(proto) === 'naiveproxy') {
|
||||||
|
hintEl.textContent = _('naiveproxy_client_hint');
|
||||||
|
hintEl.classList.remove('hidden');
|
||||||
|
} else {
|
||||||
|
hintEl.textContent = '';
|
||||||
|
hintEl.classList.add('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
switchConfigTab('conf');
|
switchConfigTab('conf');
|
||||||
openModal('configModal');
|
openModal('configModal');
|
||||||
generateQR(result.config);
|
generateQR(result.config);
|
||||||
@@ -2952,6 +2965,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ========== Init ==========
|
// ========== Init ==========
|
||||||
applyInstalledAppsVisibility();
|
applyInstalledAppsVisibility();
|
||||||
checkServer();
|
checkServer();
|
||||||
|
|||||||
+320
-55
@@ -204,88 +204,147 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- BLOCK Tunnels -->
|
<!-- BLOCK Tunnels -->
|
||||||
<div class="card">
|
<div class="card tunnels-card">
|
||||||
<h3 class="card-title" style="margin-bottom: var(--space-lg);">🌍 {{ _('tunnels_title') }}</h3>
|
<div class="tunnels-header">
|
||||||
<div style="display: flex; flex-direction: column; gap: var(--space-md);">
|
<h3 class="card-title">🌍 {{ _('tunnels_title') }}</h3>
|
||||||
<div style="padding: var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary);">
|
<p class="tunnels-subtitle">{{ _('tunnels_subtitle') }}</p>
|
||||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); margin-bottom: var(--space-sm);">
|
|
||||||
<strong>{{ _('local_server') }}</strong>
|
|
||||||
<span class="badge badge-info">{{ _('active') }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div style="display:flex; gap:var(--space-sm); align-items:center;">
|
|
||||||
<code id="localServerUrl" style="flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--text-secondary);">{{ request.url.scheme }}://{{ request.url.netloc }}</code>
|
<div class="tunnels-local">
|
||||||
|
<div class="tunnels-local-icon" aria-hidden="true">🏠</div>
|
||||||
|
<div class="tunnels-local-body">
|
||||||
|
<div class="tunnels-local-label">{{ _('local_server') }}</div>
|
||||||
|
<div class="tunnels-local-url">
|
||||||
|
<code id="localServerUrl">{{ request.url.scheme }}://{{ request.url.netloc }}</code>
|
||||||
<button type="button" class="btn btn-secondary btn-sm" onclick="copyElementText('localServerUrl')">{{ _('copy') }}</button>
|
<button type="button" class="btn btn-secondary btn-sm" onclick="copyElementText('localServerUrl')">{{ _('copy') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<span class="tunnel-status-pill tunnel-status-pill--ok">{{ _('active') }}</span>
|
||||||
<div class="tunnel-row" data-provider="cloudflare" style="padding: var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary);">
|
|
||||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); margin-bottom: var(--space-sm);">
|
|
||||||
<strong>Cloudflare Quick Tunnel</strong>
|
|
||||||
<span class="badge badge-secondary" id="cloudflareInstallBadge">{{ _('not_installed') }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="cloudflarePublicUrls" class="form-hint" style="margin-bottom: var(--space-sm);">{{ _('tunnel_no_public_url') }}</div>
|
|
||||||
<div style="display:grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm);">
|
<div class="tunnels-section">
|
||||||
<button type="button" class="btn btn-primary" id="cloudflareTunnelBtn" onclick="enableTunnel('cloudflare')">
|
<h4 class="tunnels-section-title">{{ _('tunnels_section_inbound') }}</h4>
|
||||||
|
<div class="tunnels-grid">
|
||||||
|
<article class="tunnel-card tunnel-row" data-provider="cloudflare" id="tunnelCard-cloudflare">
|
||||||
|
<div class="tunnel-card-head">
|
||||||
|
<div class="tunnel-card-icon tunnel-card-icon--cloudflare" aria-hidden="true">☁</div>
|
||||||
|
<div class="tunnel-card-meta">
|
||||||
|
<h5 class="tunnel-card-title">Cloudflare Quick Tunnel</h5>
|
||||||
|
<p class="tunnel-card-desc">{{ _('tunnel_cloudflare_desc') }}</p>
|
||||||
|
</div>
|
||||||
|
<span class="tunnel-status-pill" id="cloudflareInstallBadge">{{ _('not_installed') }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="tunnel-card-body">
|
||||||
|
<div id="cloudflarePublicUrls" class="tunnel-url-box tunnel-url-box--empty">{{ _('tunnel_no_public_url') }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="tunnel-card-actions tunnel-card-actions--triple">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" id="cloudflareTunnelBtn" onclick="enableTunnel('cloudflare')">
|
||||||
<span id="cloudflareTunnelBtnText">{{ _('tunnel_install_enable') }}</span>
|
<span id="cloudflareTunnelBtnText">{{ _('tunnel_install_enable') }}</span>
|
||||||
<div class="spinner hidden" id="cloudflareTunnelSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="cloudflareTunnelSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-secondary hidden" id="cloudflareStopBtn" onclick="stopTunnel('cloudflare')">
|
<button type="button" class="btn btn-secondary btn-sm hidden" id="cloudflareStopBtn" onclick="stopTunnel('cloudflare')">
|
||||||
<span id="cloudflareStopBtnText">{{ _('tunnel_stop') }}</span>
|
<span id="cloudflareStopBtnText">{{ _('tunnel_stop') }}</span>
|
||||||
<div class="spinner hidden" id="cloudflareStopSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="cloudflareStopSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-danger hidden" id="cloudflareDeleteBtn" onclick="deleteTunnel('cloudflare')">
|
<button type="button" class="btn btn-danger btn-sm hidden" id="cloudflareDeleteBtn" onclick="deleteTunnel('cloudflare')">
|
||||||
<span id="cloudflareDeleteBtnText">{{ _('tunnel_delete') }}</span>
|
<span id="cloudflareDeleteBtnText">{{ _('tunnel_delete') }}</span>
|
||||||
<div class="spinner hidden" id="cloudflareDeleteSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="cloudflareDeleteSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</article>
|
||||||
|
|
||||||
<div class="tunnel-row" data-provider="ngrok" style="padding: var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary);">
|
<article class="tunnel-card tunnel-row" data-provider="ngrok" id="tunnelCard-ngrok">
|
||||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); margin-bottom: var(--space-sm);">
|
<div class="tunnel-card-head">
|
||||||
<strong>ngrok Tunnel + Authtoken</strong>
|
<div class="tunnel-card-icon tunnel-card-icon--ngrok" aria-hidden="true">N</div>
|
||||||
<span class="badge badge-secondary" id="ngrokInstallBadge">{{ _('not_installed') }}</span>
|
<div class="tunnel-card-meta">
|
||||||
|
<h5 class="tunnel-card-title">ngrok</h5>
|
||||||
|
<p class="tunnel-card-desc">{{ _('tunnel_ngrok_desc') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" style="margin-bottom: var(--space-sm);">
|
<span class="tunnel-status-pill" id="ngrokInstallBadge">{{ _('not_installed') }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="tunnel-card-body">
|
||||||
<input type="password" class="form-input" id="ngrokAuthtoken" placeholder="{{ _('ngrok_authtoken_placeholder') }}" autocomplete="off">
|
<input type="password" class="form-input" id="ngrokAuthtoken" placeholder="{{ _('ngrok_authtoken_placeholder') }}" autocomplete="off">
|
||||||
|
<div id="ngrokPublicUrls" class="tunnel-url-box tunnel-url-box--empty">{{ _('tunnel_no_public_url') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="ngrokPublicUrls" class="form-hint" style="margin-bottom: var(--space-sm);">{{ _('tunnel_no_public_url') }}</div>
|
<div class="tunnel-card-actions tunnel-card-actions--triple">
|
||||||
<div style="display:grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-sm);">
|
<button type="button" class="btn btn-primary btn-sm" id="ngrokTunnelBtn" onclick="enableTunnel('ngrok')">
|
||||||
<button type="button" class="btn btn-primary" id="ngrokTunnelBtn" onclick="enableTunnel('ngrok')">
|
|
||||||
<span id="ngrokTunnelBtnText">{{ _('tunnel_install_enable') }}</span>
|
<span id="ngrokTunnelBtnText">{{ _('tunnel_install_enable') }}</span>
|
||||||
<div class="spinner hidden" id="ngrokTunnelSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="ngrokTunnelSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-secondary hidden" id="ngrokStopBtn" onclick="stopTunnel('ngrok')">
|
<button type="button" class="btn btn-secondary btn-sm hidden" id="ngrokStopBtn" onclick="stopTunnel('ngrok')">
|
||||||
<span id="ngrokStopBtnText">{{ _('tunnel_stop') }}</span>
|
<span id="ngrokStopBtnText">{{ _('tunnel_stop') }}</span>
|
||||||
<div class="spinner hidden" id="ngrokStopSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="ngrokStopSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-danger hidden" id="ngrokDeleteBtn" onclick="deleteTunnel('ngrok')">
|
<button type="button" class="btn btn-danger btn-sm hidden" id="ngrokDeleteBtn" onclick="deleteTunnel('ngrok')">
|
||||||
<span id="ngrokDeleteBtnText">{{ _('tunnel_delete') }}</span>
|
<span id="ngrokDeleteBtnText">{{ _('tunnel_delete') }}</span>
|
||||||
<div class="spinner hidden" id="ngrokDeleteSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="ngrokDeleteSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tunnels-section">
|
||||||
<div class="tunnel-row" data-provider="warp" style="padding: var(--space-md); border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-primary);">
|
<h4 class="tunnels-section-title">{{ _('tunnels_section_outbound') }}</h4>
|
||||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:var(--space-md); margin-bottom: var(--space-sm);">
|
<div class="tunnels-grid">
|
||||||
<strong>Cloudflare WARP</strong>
|
<article class="tunnel-card tunnel-row" data-provider="warp" id="tunnelCard-warp">
|
||||||
<span class="badge badge-secondary" id="warpInstallBadge">{{ _('not_installed') }}</span>
|
<div class="tunnel-card-head">
|
||||||
|
<div class="tunnel-card-icon tunnel-card-icon--warp" aria-hidden="true">W</div>
|
||||||
|
<div class="tunnel-card-meta">
|
||||||
|
<h5 class="tunnel-card-title">Cloudflare WARP</h5>
|
||||||
|
<p class="tunnel-card-desc">{{ _('tunnel_warp_desc') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div id="warpStatusText" class="form-hint" style="margin-bottom: var(--space-sm);">{{ _('warp_status_unknown') }}</div>
|
<span class="tunnel-status-pill" id="warpInstallBadge">{{ _('not_installed') }}</span>
|
||||||
<div id="warpHintText" class="form-hint" style="margin-bottom: var(--space-sm);">{{ _('warp_hint') }}</div>
|
</div>
|
||||||
<div style="display:grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm);">
|
<div class="tunnel-card-body">
|
||||||
<button type="button" class="btn btn-primary" id="warpConnectBtn" onclick="connectWarp()">
|
<p id="warpStatusText" class="tunnel-status-line">{{ _('warp_status_unknown') }}</p>
|
||||||
|
<p id="warpHintText" class="tunnel-hint">{{ _('warp_hint') }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="tunnel-card-actions">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" id="warpConnectBtn" onclick="connectWarp()">
|
||||||
<span id="warpConnectBtnText">{{ _('warp_connect') }}</span>
|
<span id="warpConnectBtnText">{{ _('warp_connect') }}</span>
|
||||||
<div class="spinner hidden" id="warpConnectSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="warpConnectSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-secondary hidden" id="warpDisconnectBtn" onclick="disconnectWarp()">
|
<button type="button" class="btn btn-secondary btn-sm hidden" id="warpDisconnectBtn" onclick="disconnectWarp()">
|
||||||
<span id="warpDisconnectBtnText">{{ _('warp_disconnect') }}</span>
|
<span id="warpDisconnectBtnText">{{ _('warp_disconnect') }}</span>
|
||||||
<div class="spinner hidden" id="warpDisconnectSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="warpDisconnectSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</article>
|
||||||
|
|
||||||
|
<article class="tunnel-card tunnel-row" data-provider="nordvpn" id="tunnelCard-nordvpn">
|
||||||
|
<div class="tunnel-card-head">
|
||||||
|
<div class="tunnel-card-icon tunnel-card-icon--nordvpn" aria-hidden="true">N</div>
|
||||||
|
<div class="tunnel-card-meta">
|
||||||
|
<h5 class="tunnel-card-title">NordVPN</h5>
|
||||||
|
<p class="tunnel-card-desc">{{ _('tunnel_nordvpn_desc') }}</p>
|
||||||
|
</div>
|
||||||
|
<span class="tunnel-status-pill" id="nordvpnInstallBadge">{{ _('not_installed') }}</span>
|
||||||
|
</div>
|
||||||
|
<div class="tunnel-card-body">
|
||||||
|
<p id="nordvpnStatusText" class="tunnel-status-line">{{ _('nordvpn_status_unknown') }}</p>
|
||||||
|
<p id="nordvpnServerText" class="tunnel-status-line tunnel-status-line--server hidden"></p>
|
||||||
|
<p id="nordvpnHintText" class="tunnel-hint">{{ _('nordvpn_hint') }}</p>
|
||||||
|
<div class="tunnel-nordvpn-fields">
|
||||||
|
<input type="text" class="form-input" id="nordvpnCountry" placeholder="{{ _('nordvpn_country_placeholder') }}" autocomplete="off">
|
||||||
|
<input type="text" class="form-input" id="nordvpnCity" placeholder="{{ _('nordvpn_city_placeholder') }}" autocomplete="off">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="form-hint" style="margin-top: var(--space-md);">{{ _('tunnels_hint') }}</p>
|
<div class="tunnel-card-actions">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" id="nordvpnConnectBtn" onclick="connectNordvpn()">
|
||||||
|
<span id="nordvpnConnectBtnText">{{ _('nordvpn_connect') }}</span>
|
||||||
|
<div class="spinner hidden" id="nordvpnConnectSpinner" style="width:14px; height:14px;"></div>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-secondary btn-sm hidden" id="nordvpnDisconnectBtn" onclick="disconnectNordvpn()">
|
||||||
|
<span id="nordvpnDisconnectBtnText">{{ _('nordvpn_disconnect') }}</span>
|
||||||
|
<div class="spinner hidden" id="nordvpnDisconnectSpinner" style="width:14px; height:14px;"></div>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p class="tunnels-footnote">{{ _('tunnels_hint') }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- BLOCK SSL/HTTPS -->
|
<!-- BLOCK SSL/HTTPS -->
|
||||||
@@ -597,15 +656,24 @@
|
|||||||
<!-- Updated via JS -->
|
<!-- Updated via JS -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="display: flex; gap: var(--space-sm); margin-top: var(--space-sm);">
|
<div style="display: flex; gap: var(--space-sm); margin-top: var(--space-sm); flex-wrap: wrap;">
|
||||||
<button type="button" class="btn btn-secondary" onclick="checkForUpdates()" id="checkUpdateBtn" style="flex:1;">
|
<button type="button" class="btn btn-primary" onclick="upgradePanel()" id="upgradePanelBtn" style="flex:1; min-width:180px;">
|
||||||
|
<span id="upgradePanelBtnText">⬆ {{ _('upgrade_panel') }}</span>
|
||||||
|
<div class="spinner hidden" id="upgradePanelSpinner" style="width:14px; height:14px;"></div>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="btn btn-secondary" onclick="checkForUpdates()" id="checkUpdateBtn" style="flex:1; min-width:140px;">
|
||||||
<span id="checkUpdateBtnText">🔄 {{ _('check_updates') }}</span>
|
<span id="checkUpdateBtnText">🔄 {{ _('check_updates') }}</span>
|
||||||
<div class="spinner hidden" id="checkUpdateSpinner" style="width:14px; height:14px;"></div>
|
<div class="spinner hidden" id="checkUpdateSpinner" style="width:14px; height:14px;"></div>
|
||||||
</button>
|
</button>
|
||||||
<a href="https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases" target="_blank" class="btn btn-primary hidden" id="downloadUpdateBtn" style="flex:1; text-decoration: none; justify-content: center;">
|
<button type="button" class="btn btn-secondary hidden" onclick="applyPanelUpdate()" id="applyUpdateBtn" style="flex:1; min-width:140px;">
|
||||||
|
<span id="applyUpdateBtnText">⬆ {{ _('apply_update') }}</span>
|
||||||
|
<div class="spinner hidden" id="applyUpdateSpinner" style="width:14px; height:14px;"></div>
|
||||||
|
</button>
|
||||||
|
<a href="https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases" target="_blank" class="btn btn-secondary hidden" id="downloadUpdateBtn" style="flex:1; min-width:140px; text-decoration: none; justify-content: center;">
|
||||||
⬇️ {{ _('download_update') }}
|
⬇️ {{ _('download_update') }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<p class="form-hint" id="updateModeHint" style="margin:0;">{{ _('auto_update_hint') }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -916,31 +984,45 @@
|
|||||||
const el = document.getElementById(`${provider}PublicUrls`);
|
const el = document.getElementById(`${provider}PublicUrls`);
|
||||||
if (!el) return;
|
if (!el) return;
|
||||||
if (!urls || !urls.length) {
|
if (!urls || !urls.length) {
|
||||||
|
el.className = 'tunnel-url-box tunnel-url-box--empty';
|
||||||
el.textContent = _('tunnel_no_public_url');
|
el.textContent = _('tunnel_no_public_url');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
el.className = 'tunnel-url-box';
|
||||||
el.innerHTML = urls.map((url, idx) => `
|
el.innerHTML = urls.map((url, idx) => `
|
||||||
<div style="display:flex; gap:var(--space-sm); align-items:center; margin-top:${idx ? 'var(--space-xs)' : '0'};">
|
<div class="tunnel-url-row">
|
||||||
<code id="${provider}PublicUrl${idx}" style="flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--text-secondary);">${escapeHTML(url)}</code>
|
<code id="${provider}PublicUrl${idx}">${escapeHTML(url)}</code>
|
||||||
<button type="button" class="btn btn-secondary btn-sm" onclick="copyElementText('${provider}PublicUrl${idx}')">${_('copy')}</button>
|
<button type="button" class="btn btn-secondary btn-sm" onclick="copyElementText('${provider}PublicUrl${idx}')">${_('copy')}</button>
|
||||||
</div>
|
</div>
|
||||||
`).join('');
|
`).join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setTunnelStatusPill(badge, { ok, info, text }) {
|
||||||
|
if (!badge) return;
|
||||||
|
badge.className = 'tunnel-status-pill' + (ok ? ' tunnel-status-pill--ok' : (info ? ' tunnel-status-pill--info' : ''));
|
||||||
|
badge.textContent = text;
|
||||||
|
}
|
||||||
|
|
||||||
function updateTunnelProvider(provider, status) {
|
function updateTunnelProvider(provider, status) {
|
||||||
const badge = document.getElementById(`${provider}InstallBadge`);
|
const badge = document.getElementById(`${provider}InstallBadge`);
|
||||||
const text = document.getElementById(`${provider}TunnelBtnText`);
|
const text = document.getElementById(`${provider}TunnelBtnText`);
|
||||||
const startBtn = document.getElementById(`${provider}TunnelBtn`);
|
const startBtn = document.getElementById(`${provider}TunnelBtn`);
|
||||||
const stopBtn = document.getElementById(`${provider}StopBtn`);
|
const stopBtn = document.getElementById(`${provider}StopBtn`);
|
||||||
const deleteBtn = document.getElementById(`${provider}DeleteBtn`);
|
const deleteBtn = document.getElementById(`${provider}DeleteBtn`);
|
||||||
|
const card = document.getElementById(`tunnelCard-${provider}`);
|
||||||
if (!badge || !text) return;
|
if (!badge || !text) return;
|
||||||
|
|
||||||
badge.className = status.installed ? 'badge badge-success' : 'badge badge-secondary';
|
const running = !!status.running;
|
||||||
badge.textContent = status.installed ? _('installed') : _('not_installed');
|
setTunnelStatusPill(badge, {
|
||||||
text.textContent = status.running ? _('tunnel_running') : (status.installed ? _('tunnel_enable') : _('tunnel_install_enable'));
|
ok: running,
|
||||||
if (startBtn) startBtn.disabled = !!status.running;
|
info: !running && status.installed,
|
||||||
if (stopBtn) stopBtn.classList.toggle('hidden', !status.running);
|
text: running ? _('tunnel_running') : (status.installed ? _('installed') : _('not_installed')),
|
||||||
|
});
|
||||||
|
text.textContent = running ? _('tunnel_running') : (status.installed ? _('tunnel_enable') : _('tunnel_install_enable'));
|
||||||
|
if (startBtn) startBtn.disabled = running;
|
||||||
|
if (stopBtn) stopBtn.classList.toggle('hidden', !running);
|
||||||
if (deleteBtn) deleteBtn.classList.toggle('hidden', !status.installed);
|
if (deleteBtn) deleteBtn.classList.toggle('hidden', !status.installed);
|
||||||
|
if (card) card.classList.toggle('tunnel-card--running', running);
|
||||||
renderTunnelUrls(provider, status.public_urls || (status.public_url ? [status.public_url] : []));
|
renderTunnelUrls(provider, status.public_urls || (status.public_url ? [status.public_url] : []));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -951,6 +1033,7 @@
|
|||||||
updateTunnelProvider('cloudflare', data.cloudflare || {});
|
updateTunnelProvider('cloudflare', data.cloudflare || {});
|
||||||
updateTunnelProvider('ngrok', data.ngrok || {});
|
updateTunnelProvider('ngrok', data.ngrok || {});
|
||||||
updateWarpStatus(data.warp || {});
|
updateWarpStatus(data.warp || {});
|
||||||
|
updateNordvpnStatus(data.nordvpn || {});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showToast(`${_('error')}: ` + err.message, 'error');
|
showToast(`${_('error')}: ` + err.message, 'error');
|
||||||
}
|
}
|
||||||
@@ -963,12 +1046,16 @@
|
|||||||
const connectBtn = document.getElementById('warpConnectBtn');
|
const connectBtn = document.getElementById('warpConnectBtn');
|
||||||
const disconnectBtn = document.getElementById('warpDisconnectBtn');
|
const disconnectBtn = document.getElementById('warpDisconnectBtn');
|
||||||
const connectText = document.getElementById('warpConnectBtnText');
|
const connectText = document.getElementById('warpConnectBtnText');
|
||||||
|
const card = document.getElementById('tunnelCard-warp');
|
||||||
if (!badge || !statusText || !connectBtn || !disconnectBtn || !connectText) return;
|
if (!badge || !statusText || !connectBtn || !disconnectBtn || !connectText) return;
|
||||||
|
|
||||||
const installed = !!status.installed;
|
const installed = !!status.installed;
|
||||||
const connected = !!status.connected || status.status === 'connected';
|
const connected = !!status.connected || status.status === 'connected';
|
||||||
badge.className = connected ? 'badge badge-success' : (installed ? 'badge badge-info' : 'badge badge-secondary');
|
setTunnelStatusPill(badge, {
|
||||||
badge.textContent = connected ? _('warp_connected') : (installed ? _('installed') : _('not_installed'));
|
ok: connected,
|
||||||
|
info: !connected && installed,
|
||||||
|
text: connected ? _('warp_connected') : (installed ? _('installed') : _('not_installed')),
|
||||||
|
});
|
||||||
|
|
||||||
const statusKey = `warp_status_${status.status || 'unknown'}`;
|
const statusKey = `warp_status_${status.status || 'unknown'}`;
|
||||||
statusText.textContent = _(statusKey) || status.status || _('warp_status_unknown');
|
statusText.textContent = _(statusKey) || status.status || _('warp_status_unknown');
|
||||||
@@ -976,6 +1063,7 @@
|
|||||||
connectText.textContent = installed ? _('warp_connect') : _('warp_install_required');
|
connectText.textContent = installed ? _('warp_connect') : _('warp_install_required');
|
||||||
connectBtn.disabled = connected;
|
connectBtn.disabled = connected;
|
||||||
disconnectBtn.classList.toggle('hidden', !connected);
|
disconnectBtn.classList.toggle('hidden', !connected);
|
||||||
|
if (card) card.classList.toggle('tunnel-card--connected', connected);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function connectWarp() {
|
async function connectWarp() {
|
||||||
@@ -1020,6 +1108,86 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function updateNordvpnStatus(status) {
|
||||||
|
const badge = document.getElementById('nordvpnInstallBadge');
|
||||||
|
const statusText = document.getElementById('nordvpnStatusText');
|
||||||
|
const serverText = document.getElementById('nordvpnServerText');
|
||||||
|
const hintText = document.getElementById('nordvpnHintText');
|
||||||
|
const connectBtn = document.getElementById('nordvpnConnectBtn');
|
||||||
|
const disconnectBtn = document.getElementById('nordvpnDisconnectBtn');
|
||||||
|
const connectText = document.getElementById('nordvpnConnectBtnText');
|
||||||
|
const card = document.getElementById('tunnelCard-nordvpn');
|
||||||
|
if (!badge || !statusText || !connectBtn || !disconnectBtn || !connectText) return;
|
||||||
|
|
||||||
|
const installed = !!status.installed;
|
||||||
|
const connected = !!status.connected || status.status === 'connected';
|
||||||
|
setTunnelStatusPill(badge, {
|
||||||
|
ok: connected,
|
||||||
|
info: !connected && installed,
|
||||||
|
text: connected ? _('nordvpn_connected') : (installed ? _('installed') : _('not_installed')),
|
||||||
|
});
|
||||||
|
|
||||||
|
const statusKey = `nordvpn_status_${status.status || 'unknown'}`;
|
||||||
|
statusText.textContent = _(statusKey) || status.status || _('nordvpn_status_unknown');
|
||||||
|
if (serverText) {
|
||||||
|
const serverLine = status.server || '';
|
||||||
|
serverText.textContent = serverLine;
|
||||||
|
serverText.classList.toggle('hidden', !serverLine);
|
||||||
|
}
|
||||||
|
hintText.textContent = status.last_error || (installed ? _('nordvpn_hint') : (status.install_hint || _('nordvpn_install_hint')));
|
||||||
|
connectText.textContent = installed ? _('nordvpn_connect') : _('nordvpn_install_required');
|
||||||
|
connectBtn.disabled = connected;
|
||||||
|
disconnectBtn.classList.toggle('hidden', !connected);
|
||||||
|
if (card) card.classList.toggle('tunnel-card--connected', connected);
|
||||||
|
}
|
||||||
|
|
||||||
|
async function connectNordvpn() {
|
||||||
|
const btn = document.getElementById('nordvpnConnectBtn');
|
||||||
|
const spinner = document.getElementById('nordvpnConnectSpinner');
|
||||||
|
const text = document.getElementById('nordvpnConnectBtnText');
|
||||||
|
btn.disabled = true;
|
||||||
|
spinner.classList.remove('hidden');
|
||||||
|
text.textContent = _('loading');
|
||||||
|
|
||||||
|
try {
|
||||||
|
const country = (document.getElementById('nordvpnCountry') || {}).value || '';
|
||||||
|
const city = (document.getElementById('nordvpnCity') || {}).value || '';
|
||||||
|
const status = await apiCall('/api/settings/nordvpn/connect', 'POST', {
|
||||||
|
country: country.trim(),
|
||||||
|
city: city.trim(),
|
||||||
|
});
|
||||||
|
updateNordvpnStatus(status);
|
||||||
|
showToast(_('nordvpn_connected'), 'success');
|
||||||
|
} catch (err) {
|
||||||
|
showToast(`${_('error')}: ` + err.message, 'error');
|
||||||
|
await loadTunnelStatus();
|
||||||
|
} finally {
|
||||||
|
spinner.classList.add('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function disconnectNordvpn() {
|
||||||
|
const btn = document.getElementById('nordvpnDisconnectBtn');
|
||||||
|
const spinner = document.getElementById('nordvpnDisconnectSpinner');
|
||||||
|
const text = document.getElementById('nordvpnDisconnectBtnText');
|
||||||
|
btn.disabled = true;
|
||||||
|
spinner.classList.remove('hidden');
|
||||||
|
text.textContent = _('loading');
|
||||||
|
|
||||||
|
try {
|
||||||
|
const status = await apiCall('/api/settings/nordvpn/disconnect', 'POST');
|
||||||
|
updateNordvpnStatus(status);
|
||||||
|
showToast(_('nordvpn_disconnected'), 'success');
|
||||||
|
} catch (err) {
|
||||||
|
showToast(`${_('error')}: ` + err.message, 'error');
|
||||||
|
await loadTunnelStatus();
|
||||||
|
} finally {
|
||||||
|
btn.disabled = false;
|
||||||
|
text.textContent = _('nordvpn_disconnect');
|
||||||
|
spinner.classList.add('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function enableTunnel(provider) {
|
async function enableTunnel(provider) {
|
||||||
const btn = document.getElementById(`${provider}TunnelBtn`);
|
const btn = document.getElementById(`${provider}TunnelBtn`);
|
||||||
const spinner = document.getElementById(`${provider}TunnelSpinner`);
|
const spinner = document.getElementById(`${provider}TunnelSpinner`);
|
||||||
@@ -1482,41 +1650,138 @@
|
|||||||
updateProtocolsForSync();
|
updateProtocolsForSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
async function checkForUpdates() {
|
let latestUpdateInfo = null;
|
||||||
|
|
||||||
|
async function checkForUpdates(silent) {
|
||||||
const btn = document.getElementById('checkUpdateBtn');
|
const btn = document.getElementById('checkUpdateBtn');
|
||||||
const text = document.getElementById('checkUpdateBtnText');
|
const text = document.getElementById('checkUpdateBtnText');
|
||||||
const spinner = document.getElementById('checkUpdateSpinner');
|
const spinner = document.getElementById('checkUpdateSpinner');
|
||||||
const statusDiv = document.getElementById('updateStatus');
|
const statusDiv = document.getElementById('updateStatus');
|
||||||
const downloadBtn = document.getElementById('downloadUpdateBtn');
|
const downloadBtn = document.getElementById('downloadUpdateBtn');
|
||||||
|
const applyBtn = document.getElementById('applyUpdateBtn');
|
||||||
|
const modeHint = document.getElementById('updateModeHint');
|
||||||
|
|
||||||
|
if (!silent) {
|
||||||
btn.disabled = true;
|
btn.disabled = true;
|
||||||
text.textContent = "{{ _('checking_updates')|default('Checking...') }}";
|
text.textContent = "{{ _('checking_updates')|default('Checking...') }}";
|
||||||
spinner.classList.remove('hidden');
|
spinner.classList.remove('hidden');
|
||||||
|
}
|
||||||
statusDiv.classList.add('hidden');
|
statusDiv.classList.add('hidden');
|
||||||
downloadBtn.classList.add('hidden');
|
downloadBtn.classList.add('hidden');
|
||||||
|
applyBtn.classList.add('hidden');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const data = await apiCall('/api/settings/check_updates');
|
const data = await apiCall('/api/settings/check_updates');
|
||||||
|
latestUpdateInfo = data;
|
||||||
const latestVersion = data.latest_version || '';
|
const latestVersion = data.latest_version || '';
|
||||||
statusDiv.classList.remove('hidden');
|
statusDiv.classList.remove('hidden');
|
||||||
|
|
||||||
|
if (modeHint) {
|
||||||
|
const method = data.update_mode || (data.mode && data.mode.update_method) || (data.mode && data.mode.mode) || '';
|
||||||
|
if (!data.can_auto_update) {
|
||||||
|
if (method === 'docker') {
|
||||||
|
modeHint.textContent = "{{ _('auto_update_docker')|default('Docker: on the host run git pull && docker compose up -d --build.') }}";
|
||||||
|
} else {
|
||||||
|
modeHint.textContent = "{{ _('auto_update_manual')|default('One-click update needs a writable install directory or git clone.') }}";
|
||||||
|
}
|
||||||
|
} else if (method === 'archive') {
|
||||||
|
modeHint.textContent = "{{ _('auto_update_archive')|default('One-click update downloads the release ZIP from git.evilfox.cc and restarts the panel.') }}";
|
||||||
|
} else {
|
||||||
|
modeHint.textContent = "{{ _('auto_update_ready')|default('Git auto-update is available for this install.') }}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const upgradeBtn = document.getElementById('upgradePanelBtn');
|
||||||
|
if (upgradeBtn) {
|
||||||
|
upgradeBtn.disabled = false;
|
||||||
|
upgradeBtn.title = data.can_auto_update ? '' : (modeHint ? modeHint.textContent : '');
|
||||||
|
}
|
||||||
|
|
||||||
if (data.update_available && latestVersion) {
|
if (data.update_available && latestVersion) {
|
||||||
statusDiv.innerHTML = `<span style="color: var(--success); font-weight: bold;">{{ _('update_available')|default('Update available') }}: ${latestVersion}</span>`;
|
statusDiv.innerHTML = `<span style="color: var(--success); font-weight: bold;">{{ _('update_available')|default('Update available') }}: ${latestVersion}</span>`;
|
||||||
statusDiv.style.border = '1px solid var(--success)';
|
statusDiv.style.border = '1px solid var(--success)';
|
||||||
downloadBtn.href = data.html_url || data.releases_url || 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases';
|
downloadBtn.href = data.html_url || data.releases_url || 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases';
|
||||||
downloadBtn.classList.remove('hidden');
|
downloadBtn.classList.remove('hidden');
|
||||||
|
applyBtn.classList.remove('hidden');
|
||||||
} else {
|
} else {
|
||||||
statusDiv.innerHTML = `<span style="color: var(--text-muted);">{{ _('up_to_date')|default('Up to date') }}</span>`;
|
statusDiv.innerHTML = `<span style="color: var(--text-muted);">{{ _('up_to_date')|default('Up to date') }}</span>`;
|
||||||
statusDiv.style.border = '1px solid var(--border-color)';
|
statusDiv.style.border = '1px solid var(--border-color)';
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showToast('Failed to check for updates: ' + err.message, 'error');
|
if (!silent) showToast('Failed to check for updates: ' + err.message, 'error');
|
||||||
} finally {
|
} finally {
|
||||||
|
if (!silent) {
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
text.textContent = "🔄 {{ _('check_updates')|default('Check for updates') }}";
|
text.textContent = "🔄 {{ _('check_updates')|default('Check for updates') }}";
|
||||||
spinner.classList.add('hidden');
|
spinner.classList.add('hidden');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function applyPanelUpdate() {
|
||||||
|
const applyBtn = document.getElementById('applyUpdateBtn');
|
||||||
|
const applyText = document.getElementById('applyUpdateBtnText');
|
||||||
|
const applySpinner = document.getElementById('applyUpdateSpinner');
|
||||||
|
const target = (latestUpdateInfo && latestUpdateInfo.latest_version) || '';
|
||||||
|
if (!target) {
|
||||||
|
showToast("{{ _('update_no_target')|default('No target version. Check for updates first.') }}", 'error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!confirm("{{ _('apply_update_confirm')|default('Install update from git.evilfox.cc and restart the panel?') }} " + target)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
applyBtn.disabled = true;
|
||||||
|
applyText.textContent = "{{ _('applying_update')|default('Updating…') }}";
|
||||||
|
applySpinner.classList.remove('hidden');
|
||||||
|
try {
|
||||||
|
const data = await apiCall('/api/settings/apply_update', 'POST', {
|
||||||
|
target_version: target,
|
||||||
|
allow_dirty: true,
|
||||||
|
});
|
||||||
|
showToast(data.message || "{{ _('update_restarting')|default('Updated. Restarting…') }}", 'success');
|
||||||
|
setTimeout(() => { window.location.reload(); }, 3500);
|
||||||
|
} catch (err) {
|
||||||
|
showToast(_('error') + ': ' + err.message, 'error');
|
||||||
|
applyBtn.disabled = false;
|
||||||
|
applyText.textContent = "⬆ {{ _('apply_update')|default('Install update') }}";
|
||||||
|
applySpinner.classList.add('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async function upgradePanel() {
|
||||||
|
const btn = document.getElementById('upgradePanelBtn');
|
||||||
|
const text = document.getElementById('upgradePanelBtnText');
|
||||||
|
const spinner = document.getElementById('upgradePanelSpinner');
|
||||||
|
const latest = (latestUpdateInfo && latestUpdateInfo.latest_version) || '';
|
||||||
|
const confirmMsg = latest
|
||||||
|
? ("{{ _('upgrade_panel_confirm')|default('Download and install') }} " + latest + "?")
|
||||||
|
: "{{ _('upgrade_panel_confirm_latest')|default('Check for updates and install the latest release?') }}";
|
||||||
|
if (!confirm(confirmMsg)) return;
|
||||||
|
|
||||||
|
btn.disabled = true;
|
||||||
|
spinner.classList.remove('hidden');
|
||||||
|
text.textContent = "{{ _('upgrade_panel_working')|default('Updating panel…') }}";
|
||||||
|
try {
|
||||||
|
const data = await apiCall('/api/settings/upgrade_panel', 'POST', {});
|
||||||
|
if (data.up_to_date) {
|
||||||
|
showToast("{{ _('upgrade_panel_up_to_date')|default('Already on the latest version') }}", 'info');
|
||||||
|
await checkForUpdates(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
showToast(data.message || "{{ _('update_restarting')|default('Updated. Restarting…') }}", 'success');
|
||||||
|
setTimeout(() => { window.location.reload(); }, 4000);
|
||||||
|
} catch (err) {
|
||||||
|
showToast(_('error') + ': ' + err.message, 'error');
|
||||||
|
await checkForUpdates(true);
|
||||||
|
} finally {
|
||||||
|
btn.disabled = false;
|
||||||
|
spinner.classList.add('hidden');
|
||||||
|
text.textContent = "⬆ {{ _('upgrade_panel')|default('Update panel') }}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Auto-check once on Settings load
|
||||||
|
setTimeout(() => checkForUpdates(true), 800);
|
||||||
|
|
||||||
/* ========== API Tokens ========== */
|
/* ========== API Tokens ========== */
|
||||||
|
|
||||||
|
|||||||
+64
-24
@@ -39,7 +39,7 @@
|
|||||||
"limit": "Limit",
|
"limit": "Limit",
|
||||||
"manage": "Manage",
|
"manage": "Manage",
|
||||||
"no_protocols": "No protocols",
|
"no_protocols": "No protocols",
|
||||||
"add_server_desc": "Add your first VPN server to get started. You'll need SSH credentials to connect.",
|
"add_server_desc": "Add your first VPN server to get started. You\u0027ll need SSH credentials to connect.",
|
||||||
"ssh_host": "Host / IP",
|
"ssh_host": "Host / IP",
|
||||||
"ssh_port": "SSH Port",
|
"ssh_port": "SSH Port",
|
||||||
"ssh_user": "User",
|
"ssh_user": "User",
|
||||||
@@ -80,8 +80,8 @@
|
|||||||
"no_connections": "No connections",
|
"no_connections": "No connections",
|
||||||
"no_connections_desc": "Add your first connection to generate a VPN configuration",
|
"no_connections_desc": "Add your first connection to generate a VPN configuration",
|
||||||
"install_protocol": "Install protocol",
|
"install_protocol": "Install protocol",
|
||||||
"port_default_hint": "Default port: 55424. Make sure it's not busy",
|
"port_default_hint": "Default port: 55424. Make sure it\u0027s not busy",
|
||||||
"port_xray_hint": "Default port: 443 (recommended for Xray). Make sure it's not taken by another web server.",
|
"port_xray_hint": "Default port: 443 (recommended for Xray). Make sure it\u0027s not taken by another web server.",
|
||||||
"reinstall": "Reinstall",
|
"reinstall": "Reinstall",
|
||||||
"uninstall_confirm": "Uninstall {}? All connections and configurations will be lost.",
|
"uninstall_confirm": "Uninstall {}? All connections and configurations will be lost.",
|
||||||
"stop_container_confirm": "Stop container {}?",
|
"stop_container_confirm": "Stop container {}?",
|
||||||
@@ -265,10 +265,17 @@
|
|||||||
"bot_start_btn": "▶️ Start",
|
"bot_start_btn": "▶️ Start",
|
||||||
"bot_hint": "After changing the token, save the settings — the bot will restart automatically. Users must have a Telegram ID in their profile.",
|
"bot_hint": "After changing the token, save the settings — the bot will restart automatically. Users must have a Telegram ID in their profile.",
|
||||||
"api_docs_title": "🔌 API Documentation",
|
"api_docs_title": "🔌 API Documentation",
|
||||||
"api_docs_hint": "Use these interfaces to explore the panel's API capabilities",
|
"api_docs_hint": "Use these interfaces to explore the panel\u0027s API capabilities",
|
||||||
"tunnels_title": "Tunnels",
|
"tunnels_title": "Tunnels",
|
||||||
|
"tunnels_subtitle": "Expose the panel to the internet or route outbound traffic through a VPN.",
|
||||||
|
"tunnels_section_inbound": "Public access",
|
||||||
|
"tunnels_section_outbound": "Outbound VPN",
|
||||||
|
"tunnel_cloudflare_desc": "Free HTTPS URL via Cloudflare — no account required.",
|
||||||
|
"tunnel_ngrok_desc": "Stable tunnel with your ngrok authtoken.",
|
||||||
|
"tunnel_warp_desc": "Route server traffic through Cloudflare WARP.",
|
||||||
|
"tunnel_nordvpn_desc": "Connect this host to NordVPN servers.",
|
||||||
"local_server": "Local Server",
|
"local_server": "Local Server",
|
||||||
"tunnel_install_enable": "Install & Enable",
|
"tunnel_install_enable": "Install \u0026 Enable",
|
||||||
"tunnel_enable": "Enable Tunnel",
|
"tunnel_enable": "Enable Tunnel",
|
||||||
"tunnel_running": "Tunnel running",
|
"tunnel_running": "Tunnel running",
|
||||||
"tunnel_stop": "Stop",
|
"tunnel_stop": "Stop",
|
||||||
@@ -317,7 +324,7 @@
|
|||||||
"copy_key_big": "Copy key",
|
"copy_key_big": "Copy key",
|
||||||
"copying_key": "Copying…",
|
"copying_key": "Copying…",
|
||||||
"key_copied": "Key copied — paste it into the app",
|
"key_copied": "Key copied — paste it into the app",
|
||||||
"more_qr_download": "QR code & file",
|
"more_qr_download": "QR code \u0026 file",
|
||||||
"download_config_file": "Download config file",
|
"download_config_file": "Download config file",
|
||||||
"show_config_text": "Show config text",
|
"show_config_text": "Show config text",
|
||||||
"copied": "Copied!",
|
"copied": "Copied!",
|
||||||
@@ -347,33 +354,34 @@
|
|||||||
"restore_success": "Restore successful! Restarting...",
|
"restore_success": "Restore successful! Restarting...",
|
||||||
"invalid_backup_file": "Invalid backup file or structure",
|
"invalid_backup_file": "Invalid backup file or structure",
|
||||||
"config_unavailable": "Configuration unavailable",
|
"config_unavailable": "Configuration unavailable",
|
||||||
"config_unavailable_desc": "This client was created via the native Amnezia app.\\nThe private key is stored only on the user's device and cannot be recovered by the server.",
|
"config_unavailable_desc": "This client was created via the native Amnezia app.\\nThe private key is stored only on the user\u0027s device and cannot be recovered by the server.",
|
||||||
"client_public_key": "Client public key:",
|
"client_public_key": "Client public key:",
|
||||||
"telemt_desc": "MTProxy-based Telegram proxy with advanced obfuscation and TLS emulation support.",
|
"telemt_desc": "MTProxy-based Telegram proxy with advanced obfuscation and TLS emulation support.",
|
||||||
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via official tobyxdd/hysteria (apernet/hysteria) with Let's Encrypt TLS. Admin sets the domain at install time.",
|
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via official tobyxdd/hysteria (apernet/hysteria) with Let\u0027s Encrypt TLS. Admin sets the domain at install time.",
|
||||||
"hysteria_domain": "Domain",
|
"hysteria_domain": "Domain",
|
||||||
"hysteria_email": "Let's Encrypt email",
|
"hysteria_email": "Let\u0027s Encrypt email",
|
||||||
"hysteria_port_hint": "UDP port for Hysteria (default 8998). Avoid 443 if nginx/xray already use UDP/TCP 443. Port 80/TCP must be free for certificate issuance.",
|
"hysteria_port_hint": "UDP port for Hysteria (default 8998). Avoid 443 if nginx/xray already use UDP/TCP 443. Port 80/TCP must be free for certificate issuance.",
|
||||||
"hysteria_install_hint": "Point the domain A-record to this server before install. Port 80/TCP is used temporarily for Let's Encrypt HTTP-01 validation. BBR and salamander obfuscation are enabled automatically.",
|
"hysteria_install_hint": "Point the domain A-record to this server before install. Port 80/TCP is used temporarily for Let\u0027s Encrypt HTTP-01 validation. BBR and salamander obfuscation are enabled automatically.",
|
||||||
"hysteria_dns_hint": "Create this DNS record before installation:",
|
"hysteria_dns_hint": "Create this DNS record before installation:",
|
||||||
"hysteria_settings_title": "Hysteria settings",
|
"hysteria_settings_title": "Hysteria settings",
|
||||||
"hysteria_change_port": "Change port",
|
"hysteria_change_port": "Change port",
|
||||||
"hysteria_port_change_hint": "UDP listen port. If you see “address already in use”, pick a free port (e.g. 8443 or 8998), save, then re-import the client link.",
|
"hysteria_port_change_hint": "UDP listen port. If you see “address already in use”, pick a free port (e.g. 8443 or 8998), save, then re-import the client link.",
|
||||||
"hysteria_settings_saved": "Hysteria settings updated",
|
"hysteria_settings_saved": "Hysteria settings updated",
|
||||||
"hysteria_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let's Encrypt on 80, HTTPS/QUIC on 443).",
|
"hysteria_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let\u0027s Encrypt on 80, HTTPS/QUIC on 443).",
|
||||||
"hysteria_renew_ssl": "Renew SSL",
|
"hysteria_renew_ssl": "Renew SSL",
|
||||||
"hysteria_ssl_change_hint": "Changing the domain re-issues the Let's Encrypt certificate (port 80 must be free).",
|
"hysteria_ssl_change_hint": "Changing the domain re-issues the Let\u0027s Encrypt certificate (port 80 must be free).",
|
||||||
"hysteria_ssl_required": "Domain and email are required for SSL",
|
"hysteria_ssl_required": "Domain and email are required for SSL",
|
||||||
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — HTTPS/HTTP2 proxy with Let's Encrypt TLS. Admin sets the domain at install time.",
|
"naiveproxy_desc": "NaiveProxy (stable) — HTTPS/HTTP2 via Caddy + forwardproxy, Let\u0027s Encrypt TLS. Client: use Karing. Do not use v2rayN; other clients untested.",
|
||||||
"naiveproxy_domain": "Domain",
|
"naiveproxy_domain": "Domain",
|
||||||
"naiveproxy_email": "Let's Encrypt email",
|
"naiveproxy_email": "Let\u0027s Encrypt email",
|
||||||
"naiveproxy_port_hint": "TCP port 443 is fixed for NaiveProxy. Port 80/TCP must be free for certificate issuance.",
|
"naiveproxy_port_hint": "TCP port 443 is fixed for NaiveProxy. Port 80/TCP must be free for certificate issuance.",
|
||||||
"naiveproxy_install_hint": "Point the domain A-record to this server before install. Free TCP ports 80 and 443 are required (Let's Encrypt and HTTPS proxy).",
|
"naiveproxy_install_hint": "Point the domain A-record to this server before install. Free TCP ports 80 and 443 are required (Let\u0027s Encrypt and HTTPS proxy).",
|
||||||
"naiveproxy_dns_hint": "Create this DNS record before installation:",
|
"naiveproxy_dns_hint": "Create this DNS record before installation:",
|
||||||
"naiveproxy_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let's Encrypt on 80, HTTPS proxy on 443).",
|
"naiveproxy_ports_warning": "Warning: free TCP ports 80 and 443 are required for stable operation (Let\u0027s Encrypt on 80, HTTPS proxy on 443).",
|
||||||
|
"naiveproxy_client_hint": "Stable build. Do NOT use v2rayN. Confirmed working in Karing. Other clients are untested.",
|
||||||
"server_ssl_domain": "SSL domain (default)",
|
"server_ssl_domain": "SSL domain (default)",
|
||||||
"server_ssl_email": "SSL email (default)",
|
"server_ssl_email": "SSL email (default)",
|
||||||
"server_ssl_hint": "Used when installing Hysteria / NGINX on this server (Let's Encrypt).",
|
"server_ssl_hint": "Used when installing Hysteria / NGINX on this server (Let\u0027s Encrypt).",
|
||||||
"container_logs": "Container logs",
|
"container_logs": "Container logs",
|
||||||
"logs_btn": "📋 Logs",
|
"logs_btn": "📋 Logs",
|
||||||
"logs_live": "Live",
|
"logs_live": "Live",
|
||||||
@@ -432,7 +440,7 @@
|
|||||||
"ping_checking": "Checking connectivity...",
|
"ping_checking": "Checking connectivity...",
|
||||||
"offline": "offline",
|
"offline": "offline",
|
||||||
"api_tokens_title": "API tokens",
|
"api_tokens_title": "API tokens",
|
||||||
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
||||||
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
||||||
"api_tokens_create": "Create token",
|
"api_tokens_create": "Create token",
|
||||||
"api_tokens_create_title": "Create API token",
|
"api_tokens_create_title": "Create API token",
|
||||||
@@ -442,8 +450,8 @@
|
|||||||
"api_tokens_name_required": "Token name is required",
|
"api_tokens_name_required": "Token name is required",
|
||||||
"api_tokens_created_title": "Token created",
|
"api_tokens_created_title": "Token created",
|
||||||
"api_tokens_value_label": "Token value",
|
"api_tokens_value_label": "Token value",
|
||||||
"api_tokens_warning_title": "This is the only time you'll see this token.",
|
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
|
||||||
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
|
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
|
||||||
"api_tokens_revoke": "Revoke",
|
"api_tokens_revoke": "Revoke",
|
||||||
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
||||||
"api_tokens_revoked": "Token revoked",
|
"api_tokens_revoked": "Token revoked",
|
||||||
@@ -473,13 +481,28 @@
|
|||||||
"cert_text_label": "Certificate content (CRT)",
|
"cert_text_label": "Certificate content (CRT)",
|
||||||
"key_text_label": "Private Key content (KEY)",
|
"key_text_label": "Private Key content (KEY)",
|
||||||
"ssl_hint": "After enabling, the panel will be accessible via https:// on the specified domain. Make sure the file paths or text data are correct.",
|
"ssl_hint": "After enabling, the panel will be accessible via https:// on the specified domain. Make sure the file paths or text data are correct.",
|
||||||
"about_title": "About & Updates",
|
"about_title": "About \u0026 Updates",
|
||||||
"current_version": "Current version",
|
"current_version": "Current version",
|
||||||
"check_updates": "Check for updates",
|
"check_updates": "Check for updates",
|
||||||
"checking_updates": "Checking...",
|
"checking_updates": "Checking...",
|
||||||
"update_available": "New version available",
|
"update_available": "New version available",
|
||||||
"download_update": "Download update",
|
"download_update": "Download update",
|
||||||
"up_to_date": "You have the latest version",
|
"up_to_date": "You have the latest version",
|
||||||
|
"apply_update": "Install update",
|
||||||
|
"applying_update": "Updating…",
|
||||||
|
"apply_update_confirm": "Install update from git.evilfox.cc and restart the panel?",
|
||||||
|
"update_restarting": "Updated. Restarting panel…",
|
||||||
|
"update_no_target": "No target version. Check for updates first.",
|
||||||
|
"auto_update_hint": "Auto-update pulls the release tag from git.evilfox.cc (git checkout required).",
|
||||||
|
"auto_update_ready": "Git auto-update is available for this install.",
|
||||||
|
"auto_update_docker": "Docker: one-click update downloads the release ZIP into the container. Rebuild the image to persist across container recreation.",
|
||||||
|
"auto_update_manual": "One-click update needs a writable install directory or git clone. You can still download a release.",
|
||||||
|
"auto_update_archive": "One-click update downloads the release ZIP from git.evilfox.cc and restarts the panel.",
|
||||||
|
"upgrade_panel": "Update panel",
|
||||||
|
"upgrade_panel_confirm": "Download and install",
|
||||||
|
"upgrade_panel_confirm_latest": "Check for updates and install the latest release?",
|
||||||
|
"upgrade_panel_working": "Updating panel…",
|
||||||
|
"upgrade_panel_up_to_date": "Already on the latest version",
|
||||||
"warp_hint": "WARP routes this host outbound through Cloudflare. It does not create a public panel URL like Quick Tunnel or ngrok.",
|
"warp_hint": "WARP routes this host outbound through Cloudflare. It does not create a public panel URL like Quick Tunnel or ngrok.",
|
||||||
"warp_install_hint": "Install the official Cloudflare WARP client first, then restart the panel.",
|
"warp_install_hint": "Install the official Cloudflare WARP client first, then restart the panel.",
|
||||||
"warp_install_required": "Install WARP first",
|
"warp_install_required": "Install WARP first",
|
||||||
@@ -495,6 +518,23 @@
|
|||||||
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
||||||
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
||||||
"warp_status_error": "Cloudflare WARP returned an error.",
|
"warp_status_error": "Cloudflare WARP returned an error.",
|
||||||
|
"nordvpn_hint": "NordVPN routes this host outbound through NordVPN servers. It does not create a public panel URL like Quick Tunnel or ngrok. Run nordvpn login on the host once before connecting.",
|
||||||
|
"nordvpn_install_hint": "Install the official NordVPN client/CLI on this host, run nordvpn login, then restart the panel.",
|
||||||
|
"nordvpn_install_required": "Install NordVPN first",
|
||||||
|
"nordvpn_connect": "Connect NordVPN",
|
||||||
|
"nordvpn_disconnect": "Disconnect",
|
||||||
|
"nordvpn_connected": "NordVPN connected",
|
||||||
|
"nordvpn_disconnected": "NordVPN disconnected",
|
||||||
|
"nordvpn_status_unknown": "NordVPN status is unknown.",
|
||||||
|
"nordvpn_status_not_installed": "NordVPN CLI is not installed on this host.",
|
||||||
|
"nordvpn_status_connected": "NordVPN is connected.",
|
||||||
|
"nordvpn_status_connecting": "NordVPN is connecting.",
|
||||||
|
"nordvpn_status_disconnected": "NordVPN is disconnected.",
|
||||||
|
"nordvpn_status_not_logged_in": "NordVPN is installed but not logged in. Run nordvpn login on this host.",
|
||||||
|
"nordvpn_status_service_unavailable": "NordVPN daemon is not available. Make sure nordvpnd is running.",
|
||||||
|
"nordvpn_status_error": "NordVPN returned an error.",
|
||||||
|
"nordvpn_country_placeholder": "Country (optional, e.g. Germany or de)",
|
||||||
|
"nordvpn_city_placeholder": "City (optional, e.g. Berlin)",
|
||||||
"install_starting": "Starting installation...",
|
"install_starting": "Starting installation...",
|
||||||
"server_check_complete": "Check completed",
|
"server_check_complete": "Check completed",
|
||||||
"server_connection_error": "Connection error",
|
"server_connection_error": "Connection error",
|
||||||
@@ -518,10 +558,10 @@
|
|||||||
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
||||||
"checking_server": "Checking server services...",
|
"checking_server": "Checking server services...",
|
||||||
"web_servers": "Web servers",
|
"web_servers": "Web servers",
|
||||||
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
|
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
|
||||||
"nginx_domain": "Domain",
|
"nginx_domain": "Domain",
|
||||||
"nginx_email": "Let's Encrypt email",
|
"nginx_email": "Let\u0027s Encrypt email",
|
||||||
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
|
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
|
||||||
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used temporarily/permanently for HTTP-01 certificate validation.",
|
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used temporarily/permanently for HTTP-01 certificate validation.",
|
||||||
"site": "Site",
|
"site": "Site",
|
||||||
"site_editor": "Site editor",
|
"site_editor": "Site editor",
|
||||||
|
|||||||
+64
-16
@@ -256,7 +256,14 @@
|
|||||||
"bot_hint": "پس از تغییر توکن تنظیمات را ذخیره کنید تا ربات بازراهاندازی شود.",
|
"bot_hint": "پس از تغییر توکن تنظیمات را ذخیره کنید تا ربات بازراهاندازی شود.",
|
||||||
"api_docs_title": "🔌 مستندات API",
|
"api_docs_title": "🔌 مستندات API",
|
||||||
"api_docs_hint": "از این رابطها برای بررسی قابلیتهای API استفاده کنید",
|
"api_docs_hint": "از این رابطها برای بررسی قابلیتهای API استفاده کنید",
|
||||||
"tunnels_title": "Tunnels",
|
"tunnels_title": "تونلها",
|
||||||
|
"tunnels_subtitle": "پنل را در اینترنت منتشر کنید یا ترافیک خروجی را از طریق VPN هدایت کنید.",
|
||||||
|
"tunnels_section_inbound": "دسترسی عمومی",
|
||||||
|
"tunnels_section_outbound": "VPN خروجی",
|
||||||
|
"tunnel_cloudflare_desc": "آدرس HTTPS رایگان از Cloudflare — بدون ثبتنام.",
|
||||||
|
"tunnel_ngrok_desc": "تونل پایدار با authtoken ngrok شما.",
|
||||||
|
"tunnel_warp_desc": "هدایت ترافیک سرور از طریق Cloudflare WARP.",
|
||||||
|
"tunnel_nordvpn_desc": "اتصال این میزبان به سرورهای NordVPN.",
|
||||||
"local_server": "سرور محلی",
|
"local_server": "سرور محلی",
|
||||||
"tunnel_install_enable": "نصب و فعالسازی",
|
"tunnel_install_enable": "نصب و فعالسازی",
|
||||||
"tunnel_enable": "فعالسازی تونل",
|
"tunnel_enable": "فعالسازی تونل",
|
||||||
@@ -340,9 +347,9 @@
|
|||||||
"clear_server": "پاکسازی سرور",
|
"clear_server": "پاکسازی سرور",
|
||||||
"remove_server": "حذف سرور از پنل",
|
"remove_server": "حذف سرور از پنل",
|
||||||
"telemt_desc": "پروکسی تلگرام بر پایهی MTProxy با پوششهای پیشرفته.",
|
"telemt_desc": "پروکسی تلگرام بر پایهی MTProxy با پوششهای پیشرفته.",
|
||||||
"hysteria_desc": "Hysteria 2 (QUIC/UDP) با تصویر رسمی tobyxdd/hysteria (apernet/hysteria) و TLS از Let's Encrypt. دامنه را ادمین هنگام نصب مشخص میکند.",
|
"hysteria_desc": "Hysteria 2 (QUIC/UDP) با تصویر رسمی tobyxdd/hysteria (apernet/hysteria) و TLS از Let\u0027s Encrypt. دامنه را ادمین هنگام نصب مشخص میکند.",
|
||||||
"hysteria_domain": "دامنه",
|
"hysteria_domain": "دامنه",
|
||||||
"hysteria_email": "ایمیل Let's Encrypt",
|
"hysteria_email": "ایمیل Let\u0027s Encrypt",
|
||||||
"hysteria_port_hint": "پورت UDP برای Hysteria (پیشفرض 8998). اگر 443 اشغال است پورت دیگری بگذارید.",
|
"hysteria_port_hint": "پورت UDP برای Hysteria (پیشفرض 8998). اگر 443 اشغال است پورت دیگری بگذارید.",
|
||||||
"hysteria_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. BBR و obfuscation salamander بهصورت خودکار فعال میشوند.",
|
"hysteria_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. BBR و obfuscation salamander بهصورت خودکار فعال میشوند.",
|
||||||
"hysteria_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
|
"hysteria_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
|
||||||
@@ -350,20 +357,21 @@
|
|||||||
"hysteria_change_port": "تغییر پورت",
|
"hysteria_change_port": "تغییر پورت",
|
||||||
"hysteria_port_change_hint": "پورت UDP. اگر address already in use دیدید، پورت آزاد بگذارید (8443 یا 8998).",
|
"hysteria_port_change_hint": "پورت UDP. اگر address already in use دیدید، پورت آزاد بگذارید (8443 یا 8998).",
|
||||||
"hysteria_settings_saved": "پورت Hysteria بهروز شد",
|
"hysteria_settings_saved": "پورت Hysteria بهروز شد",
|
||||||
"hysteria_ports_warning": "هشدار: برای کار پایدار پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt روی ۸۰، HTTPS/QUIC روی ۴۴۳).",
|
"hysteria_ports_warning": "هشدار: برای کار پایدار پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt روی ۸۰، HTTPS/QUIC روی ۴۴۳).",
|
||||||
"hysteria_renew_ssl": "تمدید SSL",
|
"hysteria_renew_ssl": "تمدید SSL",
|
||||||
"hysteria_ssl_change_hint": "تغییر دامنه گواهی Let's Encrypt را دوباره صادر میکند (پورت ۸۰ باید آزاد باشد).",
|
"hysteria_ssl_change_hint": "تغییر دامنه گواهی Let\u0027s Encrypt را دوباره صادر میکند (پورت ۸۰ باید آزاد باشد).",
|
||||||
"hysteria_ssl_required": "برای SSL دامنه و ایمیل لازم است",
|
"hysteria_ssl_required": "برای SSL دامنه و ایمیل لازم است",
|
||||||
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — پروکسی HTTPS/HTTP2 با TLS از Let's Encrypt. دامنه را ادمین هنگام نصب مشخص میکند.",
|
"naiveproxy_desc": "NaiveProxy (پایدار) — HTTPS/HTTP2 با Caddy + forwardproxy و TLS از Let\u0027s Encrypt. کلاینت: Karing. از v2rayN استفاده نکنید؛ بقیه آزمایش نشدهاند.",
|
||||||
"naiveproxy_domain": "دامنه",
|
"naiveproxy_domain": "دامنه",
|
||||||
"naiveproxy_email": "ایمیل Let's Encrypt",
|
"naiveproxy_email": "ایمیل Let\u0027s Encrypt",
|
||||||
"naiveproxy_port_hint": "پورت TCP 443 برای NaiveProxy ثابت است. پورت 80/TCP باید برای صدور گواهی آزاد باشد.",
|
"naiveproxy_port_hint": "پورت TCP 443 برای NaiveProxy ثابت است. پورت 80/TCP باید برای صدور گواهی آزاد باشد.",
|
||||||
"naiveproxy_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt و پروکسی HTTPS).",
|
"naiveproxy_install_hint": "قبل از نصب، رکورد A دامنه باید به این سرور اشاره کند. پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt و پروکسی HTTPS).",
|
||||||
"naiveproxy_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
|
"naiveproxy_dns_hint": "قبل از نصب این رکورد DNS را بسازید:",
|
||||||
"naiveproxy_ports_warning": "هشدار: برای کار پایدار پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let's Encrypt روی ۸۰، پروکسی HTTPS روی ۴۴۳).",
|
"naiveproxy_ports_warning": "هشدار: برای کار پایدار پورتهای TCP آزاد ۸۰ و ۴۴۳ لازم است (Let\u0027s Encrypt روی ۸۰، پروکسی HTTPS روی ۴۴۳).",
|
||||||
|
"naiveproxy_client_hint": "نسخه پایدار. از v2rayN استفاده نکنید. در Karing تأیید شده. سایر کلاینتها آزمایش نشدهاند.",
|
||||||
"server_ssl_domain": "دامنه SSL (پیشفرض)",
|
"server_ssl_domain": "دامنه SSL (پیشفرض)",
|
||||||
"server_ssl_email": "ایمیل SSL (پیشفرض)",
|
"server_ssl_email": "ایمیل SSL (پیشفرض)",
|
||||||
"server_ssl_hint": "هنگام نصب Hysteria / NGINX روی این سرور استفاده میشود (Let's Encrypt).",
|
"server_ssl_hint": "هنگام نصب Hysteria / NGINX روی این سرور استفاده میشود (Let\u0027s Encrypt).",
|
||||||
"container_logs": "لاگهای کانتینر",
|
"container_logs": "لاگهای کانتینر",
|
||||||
"logs_btn": "📋 Logs",
|
"logs_btn": "📋 Logs",
|
||||||
"logs_live": "زنده",
|
"logs_live": "زنده",
|
||||||
@@ -408,7 +416,7 @@
|
|||||||
"ping_checking": "Checking connectivity...",
|
"ping_checking": "Checking connectivity...",
|
||||||
"offline": "offline",
|
"offline": "offline",
|
||||||
"api_tokens_title": "API tokens",
|
"api_tokens_title": "API tokens",
|
||||||
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
||||||
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
||||||
"api_tokens_create": "Create token",
|
"api_tokens_create": "Create token",
|
||||||
"api_tokens_create_title": "Create API token",
|
"api_tokens_create_title": "Create API token",
|
||||||
@@ -418,8 +426,8 @@
|
|||||||
"api_tokens_name_required": "Token name is required",
|
"api_tokens_name_required": "Token name is required",
|
||||||
"api_tokens_created_title": "Token created",
|
"api_tokens_created_title": "Token created",
|
||||||
"api_tokens_value_label": "Token value",
|
"api_tokens_value_label": "Token value",
|
||||||
"api_tokens_warning_title": "This is the only time you'll see this token.",
|
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
|
||||||
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
|
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
|
||||||
"api_tokens_revoke": "Revoke",
|
"api_tokens_revoke": "Revoke",
|
||||||
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
||||||
"api_tokens_revoked": "Token revoked",
|
"api_tokens_revoked": "Token revoked",
|
||||||
@@ -447,6 +455,23 @@
|
|||||||
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
||||||
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
||||||
"warp_status_error": "Cloudflare WARP returned an error.",
|
"warp_status_error": "Cloudflare WARP returned an error.",
|
||||||
|
"nordvpn_hint": "NordVPN routes this host outbound through NordVPN servers. It does not create a public panel URL like Quick Tunnel or ngrok. Run nordvpn login on the host once before connecting.",
|
||||||
|
"nordvpn_install_hint": "Install the official NordVPN client/CLI on this host, run nordvpn login, then restart the panel.",
|
||||||
|
"nordvpn_install_required": "Install NordVPN first",
|
||||||
|
"nordvpn_connect": "Connect NordVPN",
|
||||||
|
"nordvpn_disconnect": "Disconnect",
|
||||||
|
"nordvpn_connected": "NordVPN connected",
|
||||||
|
"nordvpn_disconnected": "NordVPN disconnected",
|
||||||
|
"nordvpn_status_unknown": "NordVPN status is unknown.",
|
||||||
|
"nordvpn_status_not_installed": "NordVPN CLI is not installed on this host.",
|
||||||
|
"nordvpn_status_connected": "NordVPN is connected.",
|
||||||
|
"nordvpn_status_connecting": "NordVPN is connecting.",
|
||||||
|
"nordvpn_status_disconnected": "NordVPN is disconnected.",
|
||||||
|
"nordvpn_status_not_logged_in": "NordVPN is installed but not logged in. Run nordvpn login on this host.",
|
||||||
|
"nordvpn_status_service_unavailable": "NordVPN daemon is not available. Make sure nordvpnd is running.",
|
||||||
|
"nordvpn_status_error": "NordVPN returned an error.",
|
||||||
|
"nordvpn_country_placeholder": "Country (optional, e.g. Germany or de)",
|
||||||
|
"nordvpn_city_placeholder": "City (optional, e.g. Berlin)",
|
||||||
"install_starting": "Starting installation...",
|
"install_starting": "Starting installation...",
|
||||||
"server_check_complete": "Check completed",
|
"server_check_complete": "Check completed",
|
||||||
"server_connection_error": "Connection error",
|
"server_connection_error": "Connection error",
|
||||||
@@ -469,10 +494,10 @@
|
|||||||
"new_instance": "new instance",
|
"new_instance": "new instance",
|
||||||
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
||||||
"web_servers": "Web servers",
|
"web_servers": "Web servers",
|
||||||
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
|
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
|
||||||
"nginx_domain": "Domain",
|
"nginx_domain": "Domain",
|
||||||
"nginx_email": "Let's Encrypt email",
|
"nginx_email": "Let\u0027s Encrypt email",
|
||||||
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
|
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
|
||||||
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
|
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
|
||||||
"site": "Site",
|
"site": "Site",
|
||||||
"site_editor": "Site editor",
|
"site_editor": "Site editor",
|
||||||
@@ -518,4 +543,27 @@
|
|||||||
"xui_server_select_label": "سرور 3x-ui",
|
"xui_server_select_label": "سرور 3x-ui",
|
||||||
"xui_server_select_hint": "پنل 3x-ui که URL اشتراک میدهد را انتخاب کنید.",
|
"xui_server_select_hint": "پنل 3x-ui که URL اشتراک میدهد را انتخاب کنید.",
|
||||||
"xui_server_delete_confirm": "این سرور 3x-ui حذف شود؟"
|
"xui_server_delete_confirm": "این سرور 3x-ui حذف شود؟"
|
||||||
|
,
|
||||||
|
"about_title": "About & Updates",
|
||||||
|
"current_version": "Current version",
|
||||||
|
"check_updates": "Check for updates",
|
||||||
|
"checking_updates": "Checking...",
|
||||||
|
"update_available": "New version available",
|
||||||
|
"download_update": "Download update",
|
||||||
|
"up_to_date": "You have the latest version",
|
||||||
|
"apply_update": "Install update",
|
||||||
|
"applying_update": "Updating…",
|
||||||
|
"apply_update_confirm": "Install update from git.evilfox.cc and restart the panel?",
|
||||||
|
"update_restarting": "Updated. Restarting panel…",
|
||||||
|
"update_no_target": "No target version. Check for updates first.",
|
||||||
|
"auto_update_hint": "Auto-update pulls the release tag from git.evilfox.cc (git checkout required).",
|
||||||
|
"auto_update_ready": "Git auto-update is available for this install.",
|
||||||
|
"auto_update_docker": "Docker install: rebuild/pull image, or use a git checkout for one-click update.",
|
||||||
|
"auto_update_manual": "One-click update needs a git clone. You can still download a release.",
|
||||||
|
"auto_update_archive": "One-click update downloads the release ZIP from git.evilfox.cc and restarts the panel.",
|
||||||
|
"upgrade_panel": "Update panel",
|
||||||
|
"upgrade_panel_confirm": "Download and install",
|
||||||
|
"upgrade_panel_confirm_latest": "Check for updates and install the latest release?",
|
||||||
|
"upgrade_panel_working": "Updating panel…",
|
||||||
|
"upgrade_panel_up_to_date": "Already on the latest version"
|
||||||
}
|
}
|
||||||
|
|||||||
+110
-62
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"nav_servers": "Serveurs",
|
"nav_servers": "Serveurs",
|
||||||
"nav_users": "Utilisateurs",
|
"nav_users": "Utilisateurs",
|
||||||
"nav_invites": "Liens d'invitation",
|
"nav_invites": "Liens d\u0027invitation",
|
||||||
"nav_settings": "Paramètres",
|
"nav_settings": "Paramètres",
|
||||||
"nav_connections": "Connexions",
|
"nav_connections": "Connexions",
|
||||||
"nav_logout": "Déconnexion",
|
"nav_logout": "Déconnexion",
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
"error": "Erreur",
|
"error": "Erreur",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"login_title": "Connexion au Panneau",
|
"login_title": "Connexion au Panneau",
|
||||||
"username": "Nom d'utilisateur",
|
"username": "Nom d\u0027utilisateur",
|
||||||
"password": "Mot de passe",
|
"password": "Mot de passe",
|
||||||
"captcha": "Captcha",
|
"captcha": "Captcha",
|
||||||
"captcha_placeholder": "Entrez les caractères",
|
"captcha_placeholder": "Entrez les caractères",
|
||||||
@@ -79,8 +79,8 @@
|
|||||||
"no_connections": "Aucune connexion",
|
"no_connections": "Aucune connexion",
|
||||||
"no_connections_desc": "Ajoutez votre première connexion pour générer un fichier VPN",
|
"no_connections_desc": "Ajoutez votre première connexion pour générer un fichier VPN",
|
||||||
"install_protocol": "Installer le protocole",
|
"install_protocol": "Installer le protocole",
|
||||||
"port_default_hint": "Port par défaut : 55424. Assurez-vous qu'il est libre.",
|
"port_default_hint": "Port par défaut : 55424. Assurez-vous qu\u0027il est libre.",
|
||||||
"port_xray_hint": "Port recommandé : 443. Assurez-vous qu'il n'est pas utilisé par un serveur web.",
|
"port_xray_hint": "Port recommandé : 443. Assurez-vous qu\u0027il n\u0027est pas utilisé par un serveur web.",
|
||||||
"reinstall": "Réinstaller",
|
"reinstall": "Réinstaller",
|
||||||
"uninstall_confirm": "Désinstaller {} ? Toutes les données seront perdues.",
|
"uninstall_confirm": "Désinstaller {} ? Toutes les données seront perdues.",
|
||||||
"stop_container_confirm": "Arrêter le conteneur {} ?",
|
"stop_container_confirm": "Arrêter le conteneur {} ?",
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
"add_connection": "Ajouter une connexion",
|
"add_connection": "Ajouter une connexion",
|
||||||
"connection_name": "Nom de la connexion",
|
"connection_name": "Nom de la connexion",
|
||||||
"connection_name_placeholder": "Ex: iPhone, Laptop",
|
"connection_name_placeholder": "Ex: iPhone, Laptop",
|
||||||
"assign_to_user": "Assigner à l'utilisateur (optionnel)",
|
"assign_to_user": "Assigner à l\u0027utilisateur (optionnel)",
|
||||||
"no_assign": "— Aucune assignation —",
|
"no_assign": "— Aucune assignation —",
|
||||||
"create": "Créer",
|
"create": "Créer",
|
||||||
"creating": "Création...",
|
"creating": "Création...",
|
||||||
@@ -107,19 +107,19 @@
|
|||||||
"download_conf": "⬇ Télécharger .conf",
|
"download_conf": "⬇ Télécharger .conf",
|
||||||
"copy_key": "📋 Copier la clé",
|
"copy_key": "📋 Copier la clé",
|
||||||
"vpn_link_hint": "Collez ce lien dans AmneziaVPN pour une config automatique",
|
"vpn_link_hint": "Collez ce lien dans AmneziaVPN pour une config automatique",
|
||||||
"qr_hint": "Scannez le code QR dans l'application AmneziaVPN",
|
"qr_hint": "Scannez le code QR dans l\u0027application AmneziaVPN",
|
||||||
"no_data": "Aucune donnée",
|
"no_data": "Aucune donnée",
|
||||||
"start_btn": "▶ Start",
|
"start_btn": "▶ Start",
|
||||||
"stop_btn": "⏹ Stop",
|
"stop_btn": "⏹ Stop",
|
||||||
"config_btn": "⚙️ Config",
|
"config_btn": "⚙️ Config",
|
||||||
"done": "Terminé",
|
"done": "Terminé",
|
||||||
"installing": "Installation...",
|
"installing": "Installation...",
|
||||||
"start_install": "Début de l'installation...",
|
"start_install": "Début de l\u0027installation...",
|
||||||
"check_docker": "Vérification de Docker...",
|
"check_docker": "Vérification de Docker...",
|
||||||
"prepare_host": "Préparation de l'hôte...",
|
"prepare_host": "Préparation de l\u0027hôte...",
|
||||||
"build_container": "Construction du conteneur...",
|
"build_container": "Construction du conteneur...",
|
||||||
"install_success": "Protocole installé avec succès !",
|
"install_success": "Protocole installé avec succès !",
|
||||||
"install_error": "Erreur d'installation : ",
|
"install_error": "Erreur d\u0027installation : ",
|
||||||
"qr_error": "Échec de génération du QR code",
|
"qr_error": "Échec de génération du QR code",
|
||||||
"users_title": "Utilisateurs",
|
"users_title": "Utilisateurs",
|
||||||
"search_placeholder": "Recherche par nom, email ou Telegram...",
|
"search_placeholder": "Recherche par nom, email ou Telegram...",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
"loading_users": "Chargement des utilisateurs...",
|
"loading_users": "Chargement des utilisateurs...",
|
||||||
"nothing_found": "Rien trouvé",
|
"nothing_found": "Rien trouvé",
|
||||||
"search_empty_desc": "Essayez une autre requête ou créez un utilisateur",
|
"search_empty_desc": "Essayez une autre requête ou créez un utilisateur",
|
||||||
"username_label": "Nom d'utilisateur",
|
"username_label": "Nom d\u0027utilisateur",
|
||||||
"password_label": "Mot de passe",
|
"password_label": "Mot de passe",
|
||||||
"role_label": "Rôle",
|
"role_label": "Rôle",
|
||||||
"role_user_desc": "User — voit ses propres connexions",
|
"role_user_desc": "User — voit ses propres connexions",
|
||||||
@@ -149,7 +149,7 @@
|
|||||||
"edit_user_email": "Email (optionnel)",
|
"edit_user_email": "Email (optionnel)",
|
||||||
"edit_user_limit": "Limite trafic (Go) (0 = illimité)",
|
"edit_user_limit": "Limite trafic (Go) (0 = illimité)",
|
||||||
"new_password_hint": "Nouveau mot de passe (laisser vide si inchangé)",
|
"new_password_hint": "Nouveau mot de passe (laisser vide si inchangé)",
|
||||||
"op_type_label": "Type d'opération",
|
"op_type_label": "Type d\u0027opération",
|
||||||
"create_new_conn": "Créer nouvelle connexion",
|
"create_new_conn": "Créer nouvelle connexion",
|
||||||
"link_existing_conn": "Lier existante",
|
"link_existing_conn": "Lier existante",
|
||||||
"select_existing_conn": "Sélectionner connexion",
|
"select_existing_conn": "Sélectionner connexion",
|
||||||
@@ -164,18 +164,18 @@
|
|||||||
"disabling": "Désactivation",
|
"disabling": "Désactivation",
|
||||||
"user_enabled": "Utilisateur activé",
|
"user_enabled": "Utilisateur activé",
|
||||||
"user_disabled": "Utilisateur désactivé",
|
"user_disabled": "Utilisateur désactivé",
|
||||||
"delete_user_confirm": "Supprimer l'utilisateur ? Ses connexions seront supprimées.",
|
"delete_user_confirm": "Supprimer l\u0027utilisateur ? Ses connexions seront supprimées.",
|
||||||
"share_access": "Partager l'accès",
|
"share_access": "Partager l\u0027accès",
|
||||||
"enable_public_access": "Activer l'accès public",
|
"enable_public_access": "Activer l\u0027accès public",
|
||||||
"share_password_label": "Mot de passe (optionnel)",
|
"share_password_label": "Mot de passe (optionnel)",
|
||||||
"share_password_hint": "Si défini, requis pour l'accès",
|
"share_password_hint": "Si défini, requis pour l\u0027accès",
|
||||||
"guest_settings_title": "Accès invité",
|
"guest_settings_title": "Accès invité",
|
||||||
"guest_enable": "Activer l'accès invité (sans inscription)",
|
"guest_enable": "Activer l\u0027accès invité (sans inscription)",
|
||||||
"guest_enable_hint": "Lien public sur la page de connexion. Les invités voient les connexions de l'utilisateur choisi.",
|
"guest_enable_hint": "Lien public sur la page de connexion. Les invités voient les connexions de l\u0027utilisateur choisi.",
|
||||||
"guest_link_label": "Lien invité",
|
"guest_link_label": "Lien invité",
|
||||||
"guest_link_placeholder": "Enregistrez pour générer le lien",
|
"guest_link_placeholder": "Enregistrez pour générer le lien",
|
||||||
"guest_regen_token": "Régénérer le lien",
|
"guest_regen_token": "Régénérer le lien",
|
||||||
"guest_regen_confirm": "Régénérer le lien invité ? L'ancien ne fonctionnera plus.",
|
"guest_regen_confirm": "Régénérer le lien invité ? L\u0027ancien ne fonctionnera plus.",
|
||||||
"guest_token_updated": "Lien invité mis à jour",
|
"guest_token_updated": "Lien invité mis à jour",
|
||||||
"guest_user_label": "Utilisateur des connexions invitées",
|
"guest_user_label": "Utilisateur des connexions invitées",
|
||||||
"guest_user_none": "— Choisir —",
|
"guest_user_none": "— Choisir —",
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
"guest_password_label": "Mot de passe invité (optionnel)",
|
"guest_password_label": "Mot de passe invité (optionnel)",
|
||||||
"guest_password_keep": "Laisser vide pour conserver",
|
"guest_password_keep": "Laisser vide pour conserver",
|
||||||
"guest_clear_password": "Retirer le mot de passe",
|
"guest_clear_password": "Retirer le mot de passe",
|
||||||
"guest_allow_create": "Autoriser la création d'une config",
|
"guest_allow_create": "Autoriser la création d\u0027une config",
|
||||||
"guest_access_btn": "Continuer en invité",
|
"guest_access_btn": "Continuer en invité",
|
||||||
"guest_access_login_hint": "Sans compte",
|
"guest_access_login_hint": "Sans compte",
|
||||||
"guest_title": "Accès invité",
|
"guest_title": "Accès invité",
|
||||||
@@ -194,15 +194,15 @@
|
|||||||
"guest_not_found": "404 Introuvable",
|
"guest_not_found": "404 Introuvable",
|
||||||
"guest_not_found_desc": "Accès invité désactivé ou lien invalide.",
|
"guest_not_found_desc": "Accès invité désactivé ou lien invalide.",
|
||||||
"wrong_guest_password": "Mauvais mot de passe",
|
"wrong_guest_password": "Mauvais mot de passe",
|
||||||
"invites_title": "Liens d'invitation",
|
"invites_title": "Liens d\u0027invitation",
|
||||||
"invites_hint": "Créez des liens partageables. Le destinataire peut créer une config VPN — vous fixez le nombre d'utilisations.",
|
"invites_hint": "Créez des liens partageables. Le destinataire peut créer une config VPN — vous fixez le nombre d\u0027utilisations.",
|
||||||
"invites_empty": "Aucun lien",
|
"invites_empty": "Aucun lien",
|
||||||
"invites_empty_desc": "Créez un lien à partager — sans inscription.",
|
"invites_empty_desc": "Créez un lien à partager — sans inscription.",
|
||||||
"invite_create": "Créer un lien",
|
"invite_create": "Créer un lien",
|
||||||
"invite_edit": "Modifier le lien",
|
"invite_edit": "Modifier le lien",
|
||||||
"invite_active": "Actif",
|
"invite_active": "Actif",
|
||||||
"invite_expired": "Expiré",
|
"invite_expired": "Expiré",
|
||||||
"invite_exhausted": "Plus d'utilisations",
|
"invite_exhausted": "Plus d\u0027utilisations",
|
||||||
"invite_uses": "Utilisations",
|
"invite_uses": "Utilisations",
|
||||||
"invite_name_label": "Nom du lien",
|
"invite_name_label": "Nom du lien",
|
||||||
"invite_max_uses_label": "Configs max",
|
"invite_max_uses_label": "Configs max",
|
||||||
@@ -213,13 +213,13 @@
|
|||||||
"invite_password_label": "Mot de passe (optionnel)",
|
"invite_password_label": "Mot de passe (optionnel)",
|
||||||
"invite_expires_label": "Expiration (optionnel)",
|
"invite_expires_label": "Expiration (optionnel)",
|
||||||
"invite_duration_label": "Durée du config (jours)",
|
"invite_duration_label": "Durée du config (jours)",
|
||||||
"invite_duration_hint": "Commence quand l'utilisateur clique Obtenir. 0 = illimité.",
|
"invite_duration_hint": "Commence quand l\u0027utilisateur clique Obtenir. 0 = illimité.",
|
||||||
"invite_duration_short": "Durée",
|
"invite_duration_short": "Durée",
|
||||||
"invite_duration_starts_hint": "Après obtention, valable {} jour(s)",
|
"invite_duration_starts_hint": "Après obtention, valable {} jour(s)",
|
||||||
"invite_config_expires_at": "Valable jusqu'au : {}",
|
"invite_config_expires_at": "Valable jusqu\u0027au : {}",
|
||||||
"invite_sub_tab": "Abonnement",
|
"invite_sub_tab": "Abonnement",
|
||||||
"days_short": "j",
|
"days_short": "j",
|
||||||
"invite_clear_expires": "Retirer l'expiration",
|
"invite_clear_expires": "Retirer l\u0027expiration",
|
||||||
"invite_note_label": "Note (admin)",
|
"invite_note_label": "Note (admin)",
|
||||||
"invite_note_placeholder": "Commentaire interne",
|
"invite_note_placeholder": "Commentaire interne",
|
||||||
"invite_reset_used": "Réinitialiser le compteur",
|
"invite_reset_used": "Réinitialiser le compteur",
|
||||||
@@ -255,8 +255,15 @@
|
|||||||
"bot_start_btn": "▶️ Démarrer",
|
"bot_start_btn": "▶️ Démarrer",
|
||||||
"bot_hint": "Sauvegardez après modification du token. Le bot redémarrera.",
|
"bot_hint": "Sauvegardez après modification du token. Le bot redémarrera.",
|
||||||
"api_docs_title": "🔌 Documentation API",
|
"api_docs_title": "🔌 Documentation API",
|
||||||
"api_docs_hint": "Utilisez ces interfaces pour explorer l'API",
|
"api_docs_hint": "Utilisez ces interfaces pour explorer l\u0027API",
|
||||||
"tunnels_title": "Tunnels",
|
"tunnels_title": "Tunnels",
|
||||||
|
"tunnels_subtitle": "Exposez le panneau sur Internet ou routez le trafic sortant via un VPN.",
|
||||||
|
"tunnels_section_inbound": "Accès public",
|
||||||
|
"tunnels_section_outbound": "VPN sortant",
|
||||||
|
"tunnel_cloudflare_desc": "URL HTTPS gratuite via Cloudflare — sans compte.",
|
||||||
|
"tunnel_ngrok_desc": "Tunnel stable avec votre authtoken ngrok.",
|
||||||
|
"tunnel_warp_desc": "Routez le trafic du serveur via Cloudflare WARP.",
|
||||||
|
"tunnel_nordvpn_desc": "Connectez cet hôte aux serveurs NordVPN.",
|
||||||
"local_server": "Serveur local",
|
"local_server": "Serveur local",
|
||||||
"tunnel_install_enable": "Installer et activer",
|
"tunnel_install_enable": "Installer et activer",
|
||||||
"tunnel_enable": "Activer le tunnel",
|
"tunnel_enable": "Activer le tunnel",
|
||||||
@@ -269,8 +276,8 @@
|
|||||||
"tunnel_delete_confirm": "Arrêter et supprimer ce binaire de tunnel géré par le panneau ?",
|
"tunnel_delete_confirm": "Arrêter et supprimer ce binaire de tunnel géré par le panneau ?",
|
||||||
"tunnel_starting": "Démarrage du tunnel...",
|
"tunnel_starting": "Démarrage du tunnel...",
|
||||||
"tunnel_started": "Tunnel démarré",
|
"tunnel_started": "Tunnel démarré",
|
||||||
"tunnel_waiting_url": "Tunnel démarré. En attente de l'URL publique...",
|
"tunnel_waiting_url": "Tunnel démarré. En attente de l\u0027URL publique...",
|
||||||
"tunnel_no_public_url": "L'URL publique apparaîtra ici après le démarrage du tunnel.",
|
"tunnel_no_public_url": "L\u0027URL publique apparaîtra ici après le démarrage du tunnel.",
|
||||||
"tunnels_hint": "Les tunnels rapides exposent ce panneau local sur Internet. Gardez des identifiants administrateur robustes et partagez les URL publiques uniquement avec des utilisateurs de confiance.",
|
"tunnels_hint": "Les tunnels rapides exposent ce panneau local sur Internet. Gardez des identifiants administrateur robustes et partagez les URL publiques uniquement avec des utilisateurs de confiance.",
|
||||||
"ngrok_authtoken_placeholder": "ngrok authtoken (optionnel pour certains comptes)",
|
"ngrok_authtoken_placeholder": "ngrok authtoken (optionnel pour certains comptes)",
|
||||||
"import_users_title": "📤 Import Utilisateurs",
|
"import_users_title": "📤 Import Utilisateurs",
|
||||||
@@ -294,7 +301,7 @@
|
|||||||
"deleting": "Suppression...",
|
"deleting": "Suppression...",
|
||||||
"my_connections_title": "Mes Connexions",
|
"my_connections_title": "Mes Connexions",
|
||||||
"show_config": "📄 Voir config",
|
"show_config": "📄 Voir config",
|
||||||
"no_connections_user_desc": "Contactez l'admin pour une connexion",
|
"no_connections_user_desc": "Contactez l\u0027admin pour une connexion",
|
||||||
"share_title": "Accès Connexion",
|
"share_title": "Accès Connexion",
|
||||||
"vpn_access": "Accès VPN",
|
"vpn_access": "Accès VPN",
|
||||||
"user_label_share": "Utilisateur",
|
"user_label_share": "Utilisateur",
|
||||||
@@ -313,7 +320,7 @@
|
|||||||
"invalid_captcha": "Captcha invalide",
|
"invalid_captcha": "Captcha invalide",
|
||||||
"account_disabled": "Compte désactivé",
|
"account_disabled": "Compte désactivé",
|
||||||
"invalid_login": "Login ou password incorrect",
|
"invalid_login": "Login ou password incorrect",
|
||||||
"user_exists": "L'utilisateur existe déjà",
|
"user_exists": "L\u0027utilisateur existe déjà",
|
||||||
"cannot_delete_self": "Vous ne pouvez pas vous supprimer",
|
"cannot_delete_self": "Vous ne pouvez pas vous supprimer",
|
||||||
"wrong_share_password": "Mauvais mot de passe",
|
"wrong_share_password": "Mauvais mot de passe",
|
||||||
"saving": "Enregistrement...",
|
"saving": "Enregistrement...",
|
||||||
@@ -326,11 +333,11 @@
|
|||||||
"backup_title": "Sauvegarde Simple",
|
"backup_title": "Sauvegarde Simple",
|
||||||
"download_backup": "Télécharger data.json",
|
"download_backup": "Télécharger data.json",
|
||||||
"restore_backup": "Restaurer depuis un fichier",
|
"restore_backup": "Restaurer depuis un fichier",
|
||||||
"restore_confirm": "Êtes-vous sûr ? Les données actuelles seront écrasées et l'application redémarrera.",
|
"restore_confirm": "Êtes-vous sûr ? Les données actuelles seront écrasées et l\u0027application redémarrera.",
|
||||||
"restore_success": "Restauration réussie ! Redémarrage...",
|
"restore_success": "Restauration réussie ! Redémarrage...",
|
||||||
"invalid_backup_file": "Fichier de sauvegarde ou structure invalide",
|
"invalid_backup_file": "Fichier de sauvegarde ou structure invalide",
|
||||||
"config_unavailable": "Configuration indisponible",
|
"config_unavailable": "Configuration indisponible",
|
||||||
"config_unavailable_desc": "Ce client a été créé via l'application native Amnezia.\\nLa clé privée est stockée uniquement sur l'appareil de l'utilisateur et ne peut pas être récupérée par le serveur.",
|
"config_unavailable_desc": "Ce client a été créé via l\u0027application native Amnezia.\\nLa clé privée est stockée uniquement sur l\u0027appareil de l\u0027utilisateur et ne peut pas être récupérée par le serveur.",
|
||||||
"client_public_key": "Clé publique du client :",
|
"client_public_key": "Clé publique du client :",
|
||||||
"management": "Gestion",
|
"management": "Gestion",
|
||||||
"server_management": "Gestion du serveur",
|
"server_management": "Gestion du serveur",
|
||||||
@@ -340,30 +347,31 @@
|
|||||||
"clear_server": "Réinitialiser le serveur",
|
"clear_server": "Réinitialiser le serveur",
|
||||||
"remove_server": "Retirer le serveur du panneau",
|
"remove_server": "Retirer le serveur du panneau",
|
||||||
"telemt_desc": "Proxy Telegram basé sur MTProxy avec obfuscation avancée.",
|
"telemt_desc": "Proxy Telegram basé sur MTProxy avec obfuscation avancée.",
|
||||||
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via l'image officielle tobyxdd/hysteria (apernet/hysteria) avec TLS Let's Encrypt. Le domaine est défini par l'admin à l'installation.",
|
"hysteria_desc": "Hysteria 2 (QUIC/UDP) via l\u0027image officielle tobyxdd/hysteria (apernet/hysteria) avec TLS Let\u0027s Encrypt. Le domaine est défini par l\u0027admin à l\u0027installation.",
|
||||||
"hysteria_domain": "Domaine",
|
"hysteria_domain": "Domaine",
|
||||||
"hysteria_email": "Email Let's Encrypt",
|
"hysteria_email": "Email Let\u0027s Encrypt",
|
||||||
"hysteria_port_hint": "Port UDP pour Hysteria (8998 par défaut). Évitez 443 s'il est déjà pris.",
|
"hysteria_port_hint": "Port UDP pour Hysteria (8998 par défaut). Évitez 443 s\u0027il est déjà pris.",
|
||||||
"hysteria_install_hint": "L'enregistrement A du domaine doit pointer vers ce serveur. BBR et obfuscation salamander sont activés automatiquement.",
|
"hysteria_install_hint": "L\u0027enregistrement A du domaine doit pointer vers ce serveur. BBR et obfuscation salamander sont activés automatiquement.",
|
||||||
"hysteria_dns_hint": "Créez cet enregistrement DNS avant l'installation :",
|
"hysteria_dns_hint": "Créez cet enregistrement DNS avant l\u0027installation :",
|
||||||
"hysteria_settings_title": "Paramètres Hysteria",
|
"hysteria_settings_title": "Paramètres Hysteria",
|
||||||
"hysteria_change_port": "Changer le port",
|
"hysteria_change_port": "Changer le port",
|
||||||
"hysteria_port_change_hint": "Port UDP. Si « address already in use », choisissez un port libre (8443 ou 8998).",
|
"hysteria_port_change_hint": "Port UDP. Si « address already in use », choisissez un port libre (8443 ou 8998).",
|
||||||
"hysteria_settings_saved": "Port Hysteria mis à jour",
|
"hysteria_settings_saved": "Port Hysteria mis à jour",
|
||||||
"hysteria_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let's Encrypt sur 80, HTTPS/QUIC sur 443).",
|
"hysteria_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let\u0027s Encrypt sur 80, HTTPS/QUIC sur 443).",
|
||||||
"hysteria_renew_ssl": "Renouveler SSL",
|
"hysteria_renew_ssl": "Renouveler SSL",
|
||||||
"hysteria_ssl_change_hint": "Changer le domaine réémet le certificat Let's Encrypt (le port 80 doit être libre).",
|
"hysteria_ssl_change_hint": "Changer le domaine réémet le certificat Let\u0027s Encrypt (le port 80 doit être libre).",
|
||||||
"hysteria_ssl_required": "Domaine et email requis pour SSL",
|
"hysteria_ssl_required": "Domaine et email requis pour SSL",
|
||||||
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — proxy HTTPS/HTTP2 avec TLS Let's Encrypt. Le domaine est défini par l'admin à l'installation.",
|
"naiveproxy_desc": "NaiveProxy (stable) — HTTPS/HTTP2 via Caddy + forwardproxy, TLS Let\u0027s Encrypt. Client : utilisez Karing. N\u0027utilisez pas v2rayN ; autres clients non testés.",
|
||||||
"naiveproxy_domain": "Domaine",
|
"naiveproxy_domain": "Domaine",
|
||||||
"naiveproxy_email": "Email Let's Encrypt",
|
"naiveproxy_email": "Email Let\u0027s Encrypt",
|
||||||
"naiveproxy_port_hint": "Le port TCP 443 est fixe pour NaiveProxy. Le port 80/TCP doit être libre pour l'émission du certificat.",
|
"naiveproxy_port_hint": "Le port TCP 443 est fixe pour NaiveProxy. Le port 80/TCP doit être libre pour l\u0027émission du certificat.",
|
||||||
"naiveproxy_install_hint": "L'enregistrement A du domaine doit pointer vers ce serveur. Les ports TCP 80 et 443 doivent être libres (Let's Encrypt et proxy HTTPS).",
|
"naiveproxy_install_hint": "L\u0027enregistrement A du domaine doit pointer vers ce serveur. Les ports TCP 80 et 443 doivent être libres (Let\u0027s Encrypt et proxy HTTPS).",
|
||||||
"naiveproxy_dns_hint": "Créez cet enregistrement DNS avant l'installation :",
|
"naiveproxy_dns_hint": "Créez cet enregistrement DNS avant l\u0027installation :",
|
||||||
"naiveproxy_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let's Encrypt sur 80, proxy HTTPS sur 443).",
|
"naiveproxy_ports_warning": "Attention : les ports TCP 80 et 443 doivent être libres pour un fonctionnement stable (Let\u0027s Encrypt sur 80, proxy HTTPS sur 443).",
|
||||||
|
"naiveproxy_client_hint": "Version stable. N\u0027utilisez PAS v2rayN. Fonctionne avec Karing. Autres clients non testés.",
|
||||||
"server_ssl_domain": "Domaine SSL (par défaut)",
|
"server_ssl_domain": "Domaine SSL (par défaut)",
|
||||||
"server_ssl_email": "Email SSL (par défaut)",
|
"server_ssl_email": "Email SSL (par défaut)",
|
||||||
"server_ssl_hint": "Utilisé lors de l'installation de Hysteria / NGINX sur ce serveur (Let's Encrypt).",
|
"server_ssl_hint": "Utilisé lors de l\u0027installation de Hysteria / NGINX sur ce serveur (Let\u0027s Encrypt).",
|
||||||
"container_logs": "Logs du conteneur",
|
"container_logs": "Logs du conteneur",
|
||||||
"logs_btn": "📋 Logs",
|
"logs_btn": "📋 Logs",
|
||||||
"logs_live": "Temps réel",
|
"logs_live": "Temps réel",
|
||||||
@@ -408,7 +416,7 @@
|
|||||||
"ping_checking": "Checking connectivity...",
|
"ping_checking": "Checking connectivity...",
|
||||||
"offline": "offline",
|
"offline": "offline",
|
||||||
"api_tokens_title": "API tokens",
|
"api_tokens_title": "API tokens",
|
||||||
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
||||||
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
||||||
"api_tokens_create": "Create token",
|
"api_tokens_create": "Create token",
|
||||||
"api_tokens_create_title": "Create API token",
|
"api_tokens_create_title": "Create API token",
|
||||||
@@ -418,8 +426,8 @@
|
|||||||
"api_tokens_name_required": "Token name is required",
|
"api_tokens_name_required": "Token name is required",
|
||||||
"api_tokens_created_title": "Token created",
|
"api_tokens_created_title": "Token created",
|
||||||
"api_tokens_value_label": "Token value",
|
"api_tokens_value_label": "Token value",
|
||||||
"api_tokens_warning_title": "This is the only time you'll see this token.",
|
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
|
||||||
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
|
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
|
||||||
"api_tokens_revoke": "Revoke",
|
"api_tokens_revoke": "Revoke",
|
||||||
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
||||||
"api_tokens_revoked": "Token revoked",
|
"api_tokens_revoked": "Token revoked",
|
||||||
@@ -447,6 +455,23 @@
|
|||||||
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
||||||
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
||||||
"warp_status_error": "Cloudflare WARP returned an error.",
|
"warp_status_error": "Cloudflare WARP returned an error.",
|
||||||
|
"nordvpn_hint": "NordVPN routes this host outbound through NordVPN servers. It does not create a public panel URL like Quick Tunnel or ngrok. Run nordvpn login on the host once before connecting.",
|
||||||
|
"nordvpn_install_hint": "Install the official NordVPN client/CLI on this host, run nordvpn login, then restart the panel.",
|
||||||
|
"nordvpn_install_required": "Install NordVPN first",
|
||||||
|
"nordvpn_connect": "Connect NordVPN",
|
||||||
|
"nordvpn_disconnect": "Disconnect",
|
||||||
|
"nordvpn_connected": "NordVPN connected",
|
||||||
|
"nordvpn_disconnected": "NordVPN disconnected",
|
||||||
|
"nordvpn_status_unknown": "NordVPN status is unknown.",
|
||||||
|
"nordvpn_status_not_installed": "NordVPN CLI is not installed on this host.",
|
||||||
|
"nordvpn_status_connected": "NordVPN is connected.",
|
||||||
|
"nordvpn_status_connecting": "NordVPN is connecting.",
|
||||||
|
"nordvpn_status_disconnected": "NordVPN is disconnected.",
|
||||||
|
"nordvpn_status_not_logged_in": "NordVPN is installed but not logged in. Run nordvpn login on this host.",
|
||||||
|
"nordvpn_status_service_unavailable": "NordVPN daemon is not available. Make sure nordvpnd is running.",
|
||||||
|
"nordvpn_status_error": "NordVPN returned an error.",
|
||||||
|
"nordvpn_country_placeholder": "Country (optional, e.g. Germany or de)",
|
||||||
|
"nordvpn_city_placeholder": "City (optional, e.g. Berlin)",
|
||||||
"install_starting": "Starting installation...",
|
"install_starting": "Starting installation...",
|
||||||
"server_check_complete": "Check completed",
|
"server_check_complete": "Check completed",
|
||||||
"server_connection_error": "Connection error",
|
"server_connection_error": "Connection error",
|
||||||
@@ -469,10 +494,10 @@
|
|||||||
"new_instance": "new instance",
|
"new_instance": "new instance",
|
||||||
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
||||||
"web_servers": "Serveurs web",
|
"web_servers": "Serveurs web",
|
||||||
"nginx_desc": "Serveur web NGINX avec certificat HTTPS Let's Encrypt et index.html modifiable.",
|
"nginx_desc": "Serveur web NGINX avec certificat HTTPS Let\u0027s Encrypt et index.html modifiable.",
|
||||||
"nginx_domain": "Domaine",
|
"nginx_domain": "Domaine",
|
||||||
"nginx_email": "Email Let's Encrypt",
|
"nginx_email": "Email Let\u0027s Encrypt",
|
||||||
"nginx_port_hint": "Port HTTPS exposé sur le serveur. Le port 80/TCP doit être libre et accessible pour la validation Let's Encrypt.",
|
"nginx_port_hint": "Port HTTPS exposé sur le serveur. Le port 80/TCP doit être libre et accessible pour la validation Let\u0027s Encrypt.",
|
||||||
"nginx_install_hint": "Le domaine doit déjà pointer vers ce serveur. Le port 80/TCP est utilisé pour la validation HTTP-01 du certificat.",
|
"nginx_install_hint": "Le domaine doit déjà pointer vers ce serveur. Le port 80/TCP est utilisé pour la validation HTTP-01 du certificat.",
|
||||||
"site": "Site",
|
"site": "Site",
|
||||||
"site_editor": "Éditeur du site",
|
"site_editor": "Éditeur du site",
|
||||||
@@ -487,17 +512,17 @@
|
|||||||
"no_backups": "No backups yet",
|
"no_backups": "No backups yet",
|
||||||
"no_backups_desc": "Create the first backup for this protocol.",
|
"no_backups_desc": "Create the first backup for this protocol.",
|
||||||
"refresh": "Refresh",
|
"refresh": "Refresh",
|
||||||
"guest_allow_create_hint": "Crée une config pour l'utilisateur invité (3x-ui VLESS ou protocole serveur).",
|
"guest_allow_create_hint": "Crée une config pour l\u0027utilisateur invité (3x-ui VLESS ou protocole serveur).",
|
||||||
"invite_inbound_hint": "Choisissez l'inbound VLESS une fois",
|
"invite_inbound_hint": "Choisissez l\u0027inbound VLESS une fois",
|
||||||
"invite_inbound_loading": "Chargement…",
|
"invite_inbound_loading": "Chargement…",
|
||||||
"invite_inbound_empty": "Aucun inbound VLESS",
|
"invite_inbound_empty": "Aucun inbound VLESS",
|
||||||
"invite_inbound_need_xui": "Configurez 3x-ui d'abord",
|
"invite_inbound_need_xui": "Configurez 3x-ui d\u0027abord",
|
||||||
"invite_inbound_required": "Sélectionnez un inbound VLESS",
|
"invite_inbound_required": "Sélectionnez un inbound VLESS",
|
||||||
"invite_sub_url_missing_title": "URL d'abonnement manquante",
|
"invite_sub_url_missing_title": "URL d\u0027abonnement manquante",
|
||||||
"invite_sub_url_missing_hint": "Dans Paramètres → 3x-ui, définissez l'URL de base /sub.",
|
"invite_sub_url_missing_hint": "Dans Paramètres → 3x-ui, définissez l\u0027URL de base /sub.",
|
||||||
"xui_url_label": "URL 3x-ui",
|
"xui_url_label": "URL 3x-ui",
|
||||||
"xui_url_hint": "Inclure le schéma, le port et webBasePath si configuré",
|
"xui_url_hint": "Inclure le schéma, le port et webBasePath si configuré",
|
||||||
"xui_sub_url_label": "URL de base d'abonnement",
|
"xui_sub_url_label": "URL de base d\u0027abonnement",
|
||||||
"xui_sub_url_hint": "Base /sub publique sans slash final (ex: https://host:2096/sub).",
|
"xui_sub_url_hint": "Base /sub publique sans slash final (ex: https://host:2096/sub).",
|
||||||
"xui_api_token_label": "Jeton API (préféré)",
|
"xui_api_token_label": "Jeton API (préféré)",
|
||||||
"xui_api_token_placeholder": "Settings → Security → API Token",
|
"xui_api_token_placeholder": "Settings → Security → API Token",
|
||||||
@@ -507,15 +532,38 @@
|
|||||||
"xui_sync_hint": "Les clients 3x-ui deviennent des utilisateurs du panneau (liés par email)",
|
"xui_sync_hint": "Les clients 3x-ui deviennent des utilisateurs du panneau (liés par email)",
|
||||||
"xui_inbound_label": "Inbound VLESS",
|
"xui_inbound_label": "Inbound VLESS",
|
||||||
"xui_inbound_auto": "Auto (premier inbound VLESS)",
|
"xui_inbound_auto": "Auto (premier inbound VLESS)",
|
||||||
"xui_inbound_hint": "Utilisé pour créer des configs 3x-ui VLESS. Créez d'abord un inbound VLESS dans 3x-ui.",
|
"xui_inbound_hint": "Utilisé pour créer des configs 3x-ui VLESS. Créez d\u0027abord un inbound VLESS dans 3x-ui.",
|
||||||
"xui_servers_title": "Serveurs 3x-ui",
|
"xui_servers_title": "Serveurs 3x-ui",
|
||||||
"xui_servers_hint": "Ajoutez plusieurs panneaux 3x-ui. À la création, choisissez le serveur par nom — son URL d'abonnement est utilisée.",
|
"xui_servers_hint": "Ajoutez plusieurs panneaux 3x-ui. À la création, choisissez le serveur par nom — son URL d\u0027abonnement est utilisée.",
|
||||||
"xui_servers_empty": "Aucun serveur 3x-ui. Cliquez sur Ajouter.",
|
"xui_servers_empty": "Aucun serveur 3x-ui. Cliquez sur Ajouter.",
|
||||||
"xui_servers_manage_hint": "Les URL et bases d'abonnement se gèrent dans la section « Serveurs 3x-ui » ci-dessous.",
|
"xui_servers_manage_hint": "Les URL et bases d\u0027abonnement se gèrent dans la section « Serveurs 3x-ui » ci-dessous.",
|
||||||
"xui_server_add": "Ajouter un serveur",
|
"xui_server_add": "Ajouter un serveur",
|
||||||
"xui_server_name_label": "Nom / description",
|
"xui_server_name_label": "Nom / description",
|
||||||
"xui_server_name_hint": "Affiché dans les invitations (ex: US, NL).",
|
"xui_server_name_hint": "Affiché dans les invitations (ex: US, NL).",
|
||||||
"xui_server_select_label": "Serveur 3x-ui",
|
"xui_server_select_label": "Serveur 3x-ui",
|
||||||
"xui_server_select_hint": "Choisissez le panneau 3x-ui qui émettra l'URL d'abonnement.",
|
"xui_server_select_hint": "Choisissez le panneau 3x-ui qui émettra l\u0027URL d\u0027abonnement.",
|
||||||
"xui_server_delete_confirm": "Supprimer ce serveur 3x-ui ?"
|
"xui_server_delete_confirm": "Supprimer ce serveur 3x-ui ?"
|
||||||
|
,
|
||||||
|
"about_title": "About & Updates",
|
||||||
|
"current_version": "Current version",
|
||||||
|
"check_updates": "Check for updates",
|
||||||
|
"checking_updates": "Checking...",
|
||||||
|
"update_available": "New version available",
|
||||||
|
"download_update": "Download update",
|
||||||
|
"up_to_date": "You have the latest version",
|
||||||
|
"apply_update": "Install update",
|
||||||
|
"applying_update": "Updating…",
|
||||||
|
"apply_update_confirm": "Install update from git.evilfox.cc and restart the panel?",
|
||||||
|
"update_restarting": "Updated. Restarting panel…",
|
||||||
|
"update_no_target": "No target version. Check for updates first.",
|
||||||
|
"auto_update_hint": "Auto-update pulls the release tag from git.evilfox.cc (git checkout required).",
|
||||||
|
"auto_update_ready": "Git auto-update is available for this install.",
|
||||||
|
"auto_update_docker": "Docker install: rebuild/pull image, or use a git checkout for one-click update.",
|
||||||
|
"auto_update_manual": "One-click update needs a git clone. You can still download a release.",
|
||||||
|
"auto_update_archive": "One-click update downloads the release ZIP from git.evilfox.cc and restarts the panel.",
|
||||||
|
"upgrade_panel": "Update panel",
|
||||||
|
"upgrade_panel_confirm": "Download and install",
|
||||||
|
"upgrade_panel_confirm_latest": "Check for updates and install the latest release?",
|
||||||
|
"upgrade_panel_working": "Updating panel…",
|
||||||
|
"upgrade_panel_up_to_date": "Already on the latest version"
|
||||||
}
|
}
|
||||||
|
|||||||
+54
-14
@@ -267,6 +267,13 @@
|
|||||||
"api_docs_title": "🔌 API Документация",
|
"api_docs_title": "🔌 API Документация",
|
||||||
"api_docs_hint": "Используйте эти интерфейсы для изучения возможностей API панели",
|
"api_docs_hint": "Используйте эти интерфейсы для изучения возможностей API панели",
|
||||||
"tunnels_title": "Туннели",
|
"tunnels_title": "Туннели",
|
||||||
|
"tunnels_subtitle": "Публикация панели в интернете или исходящий трафик через VPN.",
|
||||||
|
"tunnels_section_inbound": "Публичный доступ",
|
||||||
|
"tunnels_section_outbound": "Исходящий VPN",
|
||||||
|
"tunnel_cloudflare_desc": "Бесплатный HTTPS-адрес через Cloudflare — без регистрации.",
|
||||||
|
"tunnel_ngrok_desc": "Стабильный туннель с вашим authtoken ngrok.",
|
||||||
|
"tunnel_warp_desc": "Маршрутизация трафика сервера через Cloudflare WARP.",
|
||||||
|
"tunnel_nordvpn_desc": "Подключение хоста к серверам NordVPN.",
|
||||||
"local_server": "Локальный сервер",
|
"local_server": "Локальный сервер",
|
||||||
"tunnel_install_enable": "Установить и включить",
|
"tunnel_install_enable": "Установить и включить",
|
||||||
"tunnel_enable": "Включить туннель",
|
"tunnel_enable": "Включить туннель",
|
||||||
@@ -350,30 +357,31 @@
|
|||||||
"config_unavailable_desc": "Этот клиент был создан через нативное приложение Amnezia.\\nПриватный ключ хранится только на устройстве пользователя и не может быть восстановлен сервером.",
|
"config_unavailable_desc": "Этот клиент был создан через нативное приложение Amnezia.\\nПриватный ключ хранится только на устройстве пользователя и не может быть восстановлен сервером.",
|
||||||
"client_public_key": "Публичный ключ клиента:",
|
"client_public_key": "Публичный ключ клиента:",
|
||||||
"telemt_desc": "Прокси для Telegram на базе MTProxy с продвинутой обфускацией и эмуляцией TLS.",
|
"telemt_desc": "Прокси для Telegram на базе MTProxy с продвинутой обфускацией и эмуляцией TLS.",
|
||||||
"hysteria_desc": "Hysteria 2 (QUIC/UDP) на официальном образе tobyxdd/hysteria (apernet/hysteria) с TLS от Let's Encrypt. Домен указывает админ при установке.",
|
"hysteria_desc": "Hysteria 2 (QUIC/UDP) на официальном образе tobyxdd/hysteria (apernet/hysteria) с TLS от Let\u0027s Encrypt. Домен указывает админ при установке.",
|
||||||
"hysteria_domain": "Домен",
|
"hysteria_domain": "Домен",
|
||||||
"hysteria_email": "Email для Let's Encrypt",
|
"hysteria_email": "Email для Let\u0027s Encrypt",
|
||||||
"hysteria_port_hint": "UDP-порт Hysteria (по умолчанию 8998). Не ставьте 443, если он уже занят nginx/xray. Порт 80/TCP должен быть свободен для выпуска сертификата.",
|
"hysteria_port_hint": "UDP-порт Hysteria (по умолчанию 8998). Не ставьте 443, если он уже занят nginx/xray. Порт 80/TCP должен быть свободен для выпуска сертификата.",
|
||||||
"hysteria_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Порт 80/TCP временно используется для HTTP-01 проверки Let's Encrypt. BBR и obfuscation salamander включаются автоматически.",
|
"hysteria_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Порт 80/TCP временно используется для HTTP-01 проверки Let\u0027s Encrypt. BBR и obfuscation salamander включаются автоматически.",
|
||||||
"hysteria_dns_hint": "Перед установкой создайте DNS-запись:",
|
"hysteria_dns_hint": "Перед установкой создайте DNS-запись:",
|
||||||
"hysteria_settings_title": "Настройки Hysteria",
|
"hysteria_settings_title": "Настройки Hysteria",
|
||||||
"hysteria_change_port": "Сменить порт",
|
"hysteria_change_port": "Сменить порт",
|
||||||
"hysteria_port_change_hint": "UDP-порт прослушивания. Если ошибка «address already in use» — выберите свободный порт (8443 или 8998), сохраните и заново импортируйте ссылку в клиент.",
|
"hysteria_port_change_hint": "UDP-порт прослушивания. Если ошибка «address already in use» — выберите свободный порт (8443 или 8998), сохраните и заново импортируйте ссылку в клиент.",
|
||||||
"hysteria_settings_saved": "Настройки Hysteria обновлены",
|
"hysteria_settings_saved": "Настройки Hysteria обновлены",
|
||||||
"hysteria_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let's Encrypt на 80, HTTPS/QUIC на 443).",
|
"hysteria_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt на 80, HTTPS/QUIC на 443).",
|
||||||
"hysteria_renew_ssl": "Обновить SSL",
|
"hysteria_renew_ssl": "Обновить SSL",
|
||||||
"hysteria_ssl_change_hint": "Смена домена заново выпускает сертификат Let's Encrypt (порт 80 должен быть свободен).",
|
"hysteria_ssl_change_hint": "Смена домена заново выпускает сертификат Let\u0027s Encrypt (порт 80 должен быть свободен).",
|
||||||
"hysteria_ssl_required": "Для SSL нужны домен и email",
|
"hysteria_ssl_required": "Для SSL нужны домен и email",
|
||||||
"naiveproxy_desc": "NaiveProxy (Caddy + forwardproxy) — HTTPS/HTTP2 прокси с TLS от Let's Encrypt. Домен указывает админ при установке.",
|
"naiveproxy_desc": "NaiveProxy (стабильный) — HTTPS/HTTP2 через Caddy + forwardproxy, TLS Let\u0027s Encrypt. Клиент: используйте Karing. Не используйте v2rayN; остальные клиенты под вопросом.",
|
||||||
"naiveproxy_domain": "Домен",
|
"naiveproxy_domain": "Домен",
|
||||||
"naiveproxy_email": "Email для Let's Encrypt",
|
"naiveproxy_email": "Email для Let\u0027s Encrypt",
|
||||||
"naiveproxy_port_hint": "TCP-порт 443 фиксирован для NaiveProxy. Порт 80/TCP должен быть свободен для выпуска сертификата.",
|
"naiveproxy_port_hint": "TCP-порт 443 фиксирован для NaiveProxy. Порт 80/TCP должен быть свободен для выпуска сертификата.",
|
||||||
"naiveproxy_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Нужны свободные TCP-порты 80 и 443 (Let's Encrypt и HTTPS-прокси).",
|
"naiveproxy_install_hint": "Перед установкой A-запись домена должна указывать на этот сервер. Нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt и HTTPS-прокси).",
|
||||||
"naiveproxy_dns_hint": "Перед установкой создайте DNS-запись:",
|
"naiveproxy_dns_hint": "Перед установкой создайте DNS-запись:",
|
||||||
"naiveproxy_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let's Encrypt на 80, HTTPS-прокси на 443).",
|
"naiveproxy_ports_warning": "Внимание: для стабильной работы нужны свободные TCP-порты 80 и 443 (Let\u0027s Encrypt на 80, HTTPS-прокси на 443).",
|
||||||
|
"naiveproxy_client_hint": "Стабильная версия. НЕ используйте v2rayN. Точно работает в Karing. Остальные клиенты под вопросом.",
|
||||||
"server_ssl_domain": "SSL-домен (по умолчанию)",
|
"server_ssl_domain": "SSL-домен (по умолчанию)",
|
||||||
"server_ssl_email": "SSL-email (по умолчанию)",
|
"server_ssl_email": "SSL-email (по умолчанию)",
|
||||||
"server_ssl_hint": "Подставляется при установке Hysteria / NGINX на этом сервере (Let's Encrypt).",
|
"server_ssl_hint": "Подставляется при установке Hysteria / NGINX на этом сервере (Let\u0027s Encrypt).",
|
||||||
"container_logs": "Логи контейнера",
|
"container_logs": "Логи контейнера",
|
||||||
"logs_btn": "📋 Логи",
|
"logs_btn": "📋 Логи",
|
||||||
"logs_live": "В реальном времени",
|
"logs_live": "В реальном времени",
|
||||||
@@ -432,7 +440,7 @@
|
|||||||
"ping_checking": "Проверяем соединение...",
|
"ping_checking": "Проверяем соединение...",
|
||||||
"offline": "недоступен",
|
"offline": "недоступен",
|
||||||
"api_tokens_title": "API-токены",
|
"api_tokens_title": "API-токены",
|
||||||
"api_tokens_hint": "Bearer-токены для внешних интеграций. Передавайте токен в заголовке `Authorization: Bearer <token>`. Токены имеют права администратора и перестают работать, если их владелец отключён или понижен в роли.",
|
"api_tokens_hint": "Bearer-токены для внешних интеграций. Передавайте токен в заголовке `Authorization: Bearer \u003ctoken\u003e`. Токены имеют права администратора и перестают работать, если их владелец отключён или понижен в роли.",
|
||||||
"api_tokens_empty": "Пока нет ни одного API-токена. Создайте, чтобы подключить панель к внешнему сервису.",
|
"api_tokens_empty": "Пока нет ни одного API-токена. Создайте, чтобы подключить панель к внешнему сервису.",
|
||||||
"api_tokens_create": "Создать токен",
|
"api_tokens_create": "Создать токен",
|
||||||
"api_tokens_create_title": "Создание API-токена",
|
"api_tokens_create_title": "Создание API-токена",
|
||||||
@@ -480,6 +488,21 @@
|
|||||||
"update_available": "Доступна новая версия",
|
"update_available": "Доступна новая версия",
|
||||||
"download_update": "Скачать обновление",
|
"download_update": "Скачать обновление",
|
||||||
"up_to_date": "У вас установлена последняя версия",
|
"up_to_date": "У вас установлена последняя версия",
|
||||||
|
"apply_update": "Установить обновление",
|
||||||
|
"applying_update": "Обновление…",
|
||||||
|
"apply_update_confirm": "Установить обновление с git.evilfox.cc и перезапустить панель?",
|
||||||
|
"update_restarting": "Обновлено. Перезапуск панели…",
|
||||||
|
"update_no_target": "Нет целевой версии. Сначала проверьте обновления.",
|
||||||
|
"auto_update_hint": "Автообновление тянет тег релиза с git.evilfox.cc (нужен git clone панели).",
|
||||||
|
"auto_update_ready": "Для этой установки доступно автообновление через git.",
|
||||||
|
"auto_update_docker": "Docker: обновление в один клик скачивает ZIP релиза в контейнер. Пересоберите образ, чтобы сохранить изменения при пересоздании контейнера.",
|
||||||
|
"auto_update_manual": "Обновление в один клик требует git clone или каталог с правами записи. Можно скачать релиз вручную.",
|
||||||
|
"auto_update_archive": "Обновление в один клик: скачивает ZIP релиза с git.evilfox.cc и перезапускает панель.",
|
||||||
|
"upgrade_panel": "Обновить панель",
|
||||||
|
"upgrade_panel_confirm": "Скачать и установить",
|
||||||
|
"upgrade_panel_confirm_latest": "Проверить обновления и установить последний релиз?",
|
||||||
|
"upgrade_panel_working": "Обновление панели…",
|
||||||
|
"upgrade_panel_up_to_date": "Уже установлена последняя версия",
|
||||||
"warp_hint": "WARP направляет исходящий трафик этого хоста через Cloudflare. Он не создаёт публичный URL панели как Quick Tunnel или ngrok.",
|
"warp_hint": "WARP направляет исходящий трафик этого хоста через Cloudflare. Он не создаёт публичный URL панели как Quick Tunnel или ngrok.",
|
||||||
"warp_install_hint": "Сначала установите официальный клиент Cloudflare WARP, затем перезапустите панель.",
|
"warp_install_hint": "Сначала установите официальный клиент Cloudflare WARP, затем перезапустите панель.",
|
||||||
"warp_install_required": "Сначала установите WARP",
|
"warp_install_required": "Сначала установите WARP",
|
||||||
@@ -495,6 +518,23 @@
|
|||||||
"warp_status_not_registered": "Cloudflare WARP установлен, но ещё не зарегистрирован. Подключение попробует зарегистрировать его автоматически.",
|
"warp_status_not_registered": "Cloudflare WARP установлен, но ещё не зарегистрирован. Подключение попробует зарегистрировать его автоматически.",
|
||||||
"warp_status_service_unavailable": "Сервис Cloudflare WARP недоступен. Убедитесь, что warp-svc запущен.",
|
"warp_status_service_unavailable": "Сервис Cloudflare WARP недоступен. Убедитесь, что warp-svc запущен.",
|
||||||
"warp_status_error": "Cloudflare WARP вернул ошибку.",
|
"warp_status_error": "Cloudflare WARP вернул ошибку.",
|
||||||
|
"nordvpn_hint": "NordVPN направляет исходящий трафик этого хоста через серверы NordVPN. Не создаёт публичный URL панели как Quick Tunnel или ngrok. Перед подключением один раз выполните nordvpn login на хосте.",
|
||||||
|
"nordvpn_install_hint": "Установите официальный клиент/CLI NordVPN на этом хосте, выполните nordvpn login и перезапустите панель.",
|
||||||
|
"nordvpn_install_required": "Сначала установите NordVPN",
|
||||||
|
"nordvpn_connect": "Подключить NordVPN",
|
||||||
|
"nordvpn_disconnect": "Отключить",
|
||||||
|
"nordvpn_connected": "NordVPN подключён",
|
||||||
|
"nordvpn_disconnected": "NordVPN отключён",
|
||||||
|
"nordvpn_status_unknown": "Статус NordVPN неизвестен.",
|
||||||
|
"nordvpn_status_not_installed": "CLI NordVPN не установлен на этом хосте.",
|
||||||
|
"nordvpn_status_connected": "NordVPN подключён.",
|
||||||
|
"nordvpn_status_connecting": "NordVPN подключается.",
|
||||||
|
"nordvpn_status_disconnected": "NordVPN отключён.",
|
||||||
|
"nordvpn_status_not_logged_in": "NordVPN установлен, но не выполнен вход. Запустите nordvpn login на хосте.",
|
||||||
|
"nordvpn_status_service_unavailable": "Демон NordVPN недоступен. Убедитесь, что nordvpnd запущен.",
|
||||||
|
"nordvpn_status_error": "NordVPN вернул ошибку.",
|
||||||
|
"nordvpn_country_placeholder": "Страна (необяз., напр. Germany или de)",
|
||||||
|
"nordvpn_city_placeholder": "Город (необяз., напр. Berlin)",
|
||||||
"install_starting": "Начинаем установку...",
|
"install_starting": "Начинаем установку...",
|
||||||
"server_check_complete": "Проверка завершена",
|
"server_check_complete": "Проверка завершена",
|
||||||
"server_connection_error": "Ошибка подключения",
|
"server_connection_error": "Ошибка подключения",
|
||||||
@@ -518,10 +558,10 @@
|
|||||||
"port_next_instance_hint": "Выберите свободный UDP-порт для дополнительного экземпляра.",
|
"port_next_instance_hint": "Выберите свободный UDP-порт для дополнительного экземпляра.",
|
||||||
"checking_server": "Проверяем сервисы сервера...",
|
"checking_server": "Проверяем сервисы сервера...",
|
||||||
"web_servers": "Веб-серверы",
|
"web_servers": "Веб-серверы",
|
||||||
"nginx_desc": "NGINX веб-сервер с HTTPS-сертификатом Let's Encrypt и редактируемым index.html.",
|
"nginx_desc": "NGINX веб-сервер с HTTPS-сертификатом Let\u0027s Encrypt и редактируемым index.html.",
|
||||||
"nginx_domain": "Домен",
|
"nginx_domain": "Домен",
|
||||||
"nginx_email": "Email для Let's Encrypt",
|
"nginx_email": "Email для Let\u0027s Encrypt",
|
||||||
"nginx_port_hint": "HTTPS-порт на сервере. Порт 80/TCP должен быть свободен и доступен для проверки Let's Encrypt.",
|
"nginx_port_hint": "HTTPS-порт на сервере. Порт 80/TCP должен быть свободен и доступен для проверки Let\u0027s Encrypt.",
|
||||||
"nginx_install_hint": "Домен уже должен указывать на этот сервер. Порт 80/TCP используется для HTTP-01 проверки сертификата.",
|
"nginx_install_hint": "Домен уже должен указывать на этот сервер. Порт 80/TCP используется для HTTP-01 проверки сертификата.",
|
||||||
"site": "Сайт",
|
"site": "Сайт",
|
||||||
"site_editor": "Редактор сайта",
|
"site_editor": "Редактор сайта",
|
||||||
|
|||||||
+63
-15
@@ -257,6 +257,13 @@
|
|||||||
"api_docs_title": "🔌 API 文档",
|
"api_docs_title": "🔌 API 文档",
|
||||||
"api_docs_hint": "使用这些接口了解面板功能",
|
"api_docs_hint": "使用这些接口了解面板功能",
|
||||||
"tunnels_title": "Tunnels",
|
"tunnels_title": "Tunnels",
|
||||||
|
"tunnels_subtitle": "将面板暴露到互联网,或通过 VPN 路由出站流量。",
|
||||||
|
"tunnels_section_inbound": "公网访问",
|
||||||
|
"tunnels_section_outbound": "出站 VPN",
|
||||||
|
"tunnel_cloudflare_desc": "通过 Cloudflare 获取免费 HTTPS 地址,无需注册。",
|
||||||
|
"tunnel_ngrok_desc": "使用 ngrok authtoken 的稳定隧道。",
|
||||||
|
"tunnel_warp_desc": "通过 Cloudflare WARP 路由服务器流量。",
|
||||||
|
"tunnel_nordvpn_desc": "将此主机连接到 NordVPN 服务器。",
|
||||||
"local_server": "本地服务器",
|
"local_server": "本地服务器",
|
||||||
"tunnel_install_enable": "安装并启用",
|
"tunnel_install_enable": "安装并启用",
|
||||||
"tunnel_enable": "启用隧道",
|
"tunnel_enable": "启用隧道",
|
||||||
@@ -340,9 +347,9 @@
|
|||||||
"clear_server": "清除服务器",
|
"clear_server": "清除服务器",
|
||||||
"remove_server": "从面板移除服务器",
|
"remove_server": "从面板移除服务器",
|
||||||
"telemt_desc": "基于 MTProxy 的 Telegram 代理,支持高级混淆。",
|
"telemt_desc": "基于 MTProxy 的 Telegram 代理,支持高级混淆。",
|
||||||
"hysteria_desc": "Hysteria 2(QUIC/UDP,官方 tobyxdd/hysteria / apernet/hysteria),支持 Let's Encrypt TLS。安装时由管理员指定域名。",
|
"hysteria_desc": "Hysteria 2(QUIC/UDP,官方 tobyxdd/hysteria / apernet/hysteria),支持 Let\u0027s Encrypt TLS。安装时由管理员指定域名。",
|
||||||
"hysteria_domain": "域名",
|
"hysteria_domain": "域名",
|
||||||
"hysteria_email": "Let's Encrypt 邮箱",
|
"hysteria_email": "Let\u0027s Encrypt 邮箱",
|
||||||
"hysteria_port_hint": "Hysteria UDP 端口(默认 8998)。若 443 已被占用请换端口。",
|
"hysteria_port_hint": "Hysteria UDP 端口(默认 8998)。若 443 已被占用请换端口。",
|
||||||
"hysteria_install_hint": "安装前请将域名 A 记录指向本服务器。将自动启用 BBR 与 salamander 混淆。",
|
"hysteria_install_hint": "安装前请将域名 A 记录指向本服务器。将自动启用 BBR 与 salamander 混淆。",
|
||||||
"hysteria_dns_hint": "安装前请创建此 DNS 记录:",
|
"hysteria_dns_hint": "安装前请创建此 DNS 记录:",
|
||||||
@@ -350,20 +357,21 @@
|
|||||||
"hysteria_change_port": "更改端口",
|
"hysteria_change_port": "更改端口",
|
||||||
"hysteria_port_change_hint": "UDP 监听端口。若提示 address already in use,请改用空闲端口(如 8443 或 8998)。",
|
"hysteria_port_change_hint": "UDP 监听端口。若提示 address already in use,请改用空闲端口(如 8443 或 8998)。",
|
||||||
"hysteria_settings_saved": "Hysteria 端口已更新",
|
"hysteria_settings_saved": "Hysteria 端口已更新",
|
||||||
"hysteria_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443(Let's Encrypt 使用 80,HTTPS/QUIC 使用 443)。",
|
"hysteria_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443(Let\u0027s Encrypt 使用 80,HTTPS/QUIC 使用 443)。",
|
||||||
"hysteria_renew_ssl": "续签 SSL",
|
"hysteria_renew_ssl": "续签 SSL",
|
||||||
"hysteria_ssl_change_hint": "更改域名会重新签发 Let's Encrypt 证书(需空闲端口 80)。",
|
"hysteria_ssl_change_hint": "更改域名会重新签发 Let\u0027s Encrypt 证书(需空闲端口 80)。",
|
||||||
"hysteria_ssl_required": "签发 SSL 需要域名和邮箱",
|
"hysteria_ssl_required": "签发 SSL 需要域名和邮箱",
|
||||||
"naiveproxy_desc": "NaiveProxy(Caddy + forwardproxy)— 带 Let's Encrypt TLS 的 HTTPS/HTTP2 代理。安装时由管理员指定域名。",
|
"naiveproxy_desc": "NaiveProxy(稳定)— Caddy + forwardproxy 的 HTTPS/HTTP2,Let\u0027s Encrypt TLS。客户端请用 Karing,不要用 v2rayN;其他客户端未测试。",
|
||||||
"naiveproxy_domain": "域名",
|
"naiveproxy_domain": "域名",
|
||||||
"naiveproxy_email": "Let's Encrypt 邮箱",
|
"naiveproxy_email": "Let\u0027s Encrypt 邮箱",
|
||||||
"naiveproxy_port_hint": "NaiveProxy 固定使用 TCP 443。签发证书需空闲 TCP 80。",
|
"naiveproxy_port_hint": "NaiveProxy 固定使用 TCP 443。签发证书需空闲 TCP 80。",
|
||||||
"naiveproxy_install_hint": "安装前请将域名 A 记录指向本服务器。需空闲 TCP 端口 80 和 443(Let's Encrypt 与 HTTPS 代理)。",
|
"naiveproxy_install_hint": "安装前请将域名 A 记录指向本服务器。需空闲 TCP 端口 80 和 443(Let\u0027s Encrypt 与 HTTPS 代理)。",
|
||||||
"naiveproxy_dns_hint": "安装前请创建此 DNS 记录:",
|
"naiveproxy_dns_hint": "安装前请创建此 DNS 记录:",
|
||||||
"naiveproxy_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443(Let's Encrypt 使用 80,HTTPS 代理使用 443)。",
|
"naiveproxy_ports_warning": "注意:稳定运行需要空闲的 TCP 端口 80 和 443(Let\u0027s Encrypt 使用 80,HTTPS 代理使用 443)。",
|
||||||
|
"naiveproxy_client_hint": "稳定版。请勿使用 v2rayN。已确认 Karing 可用。其他客户端未测试。",
|
||||||
"server_ssl_domain": "SSL 域名(默认)",
|
"server_ssl_domain": "SSL 域名(默认)",
|
||||||
"server_ssl_email": "SSL 邮箱(默认)",
|
"server_ssl_email": "SSL 邮箱(默认)",
|
||||||
"server_ssl_hint": "安装 Hysteria / NGINX 时自动填入(Let's Encrypt)。",
|
"server_ssl_hint": "安装 Hysteria / NGINX 时自动填入(Let\u0027s Encrypt)。",
|
||||||
"container_logs": "容器日志",
|
"container_logs": "容器日志",
|
||||||
"logs_btn": "📋 日志",
|
"logs_btn": "📋 日志",
|
||||||
"logs_live": "实时",
|
"logs_live": "实时",
|
||||||
@@ -408,7 +416,7 @@
|
|||||||
"ping_checking": "Checking connectivity...",
|
"ping_checking": "Checking connectivity...",
|
||||||
"offline": "offline",
|
"offline": "offline",
|
||||||
"api_tokens_title": "API tokens",
|
"api_tokens_title": "API tokens",
|
||||||
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer <token>` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
"api_tokens_hint": "Bearer tokens for external integrations. Send the token in the `Authorization: Bearer \u003ctoken\u003e` header. Tokens have admin-equivalent rights and stop working if their owner is disabled or demoted.",
|
||||||
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
"api_tokens_empty": "No API tokens yet. Create one to integrate the panel with an external service.",
|
||||||
"api_tokens_create": "Create token",
|
"api_tokens_create": "Create token",
|
||||||
"api_tokens_create_title": "Create API token",
|
"api_tokens_create_title": "Create API token",
|
||||||
@@ -418,8 +426,8 @@
|
|||||||
"api_tokens_name_required": "Token name is required",
|
"api_tokens_name_required": "Token name is required",
|
||||||
"api_tokens_created_title": "Token created",
|
"api_tokens_created_title": "Token created",
|
||||||
"api_tokens_value_label": "Token value",
|
"api_tokens_value_label": "Token value",
|
||||||
"api_tokens_warning_title": "This is the only time you'll see this token.",
|
"api_tokens_warning_title": "This is the only time you\u0027ll see this token.",
|
||||||
"api_tokens_warning_body": "Copy it now and store it in your integration's secret manager. The panel keeps only a hash — if you lose this value you'll need to revoke and recreate the token.",
|
"api_tokens_warning_body": "Copy it now and store it in your integration\u0027s secret manager. The panel keeps only a hash — if you lose this value you\u0027ll need to revoke and recreate the token.",
|
||||||
"api_tokens_revoke": "Revoke",
|
"api_tokens_revoke": "Revoke",
|
||||||
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
"api_tokens_revoke_confirm": "Revoke token \"{}\"? Any integration using it will stop working.",
|
||||||
"api_tokens_revoked": "Token revoked",
|
"api_tokens_revoked": "Token revoked",
|
||||||
@@ -447,6 +455,23 @@
|
|||||||
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
"warp_status_not_registered": "Cloudflare WARP is installed but not registered yet. Connect will try to register automatically.",
|
||||||
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
"warp_status_service_unavailable": "Cloudflare WARP service is not available. Make sure warp-svc is running.",
|
||||||
"warp_status_error": "Cloudflare WARP returned an error.",
|
"warp_status_error": "Cloudflare WARP returned an error.",
|
||||||
|
"nordvpn_hint": "NordVPN routes this host outbound through NordVPN servers. It does not create a public panel URL like Quick Tunnel or ngrok. Run nordvpn login on the host once before connecting.",
|
||||||
|
"nordvpn_install_hint": "Install the official NordVPN client/CLI on this host, run nordvpn login, then restart the panel.",
|
||||||
|
"nordvpn_install_required": "Install NordVPN first",
|
||||||
|
"nordvpn_connect": "Connect NordVPN",
|
||||||
|
"nordvpn_disconnect": "Disconnect",
|
||||||
|
"nordvpn_connected": "NordVPN connected",
|
||||||
|
"nordvpn_disconnected": "NordVPN disconnected",
|
||||||
|
"nordvpn_status_unknown": "NordVPN status is unknown.",
|
||||||
|
"nordvpn_status_not_installed": "NordVPN CLI is not installed on this host.",
|
||||||
|
"nordvpn_status_connected": "NordVPN is connected.",
|
||||||
|
"nordvpn_status_connecting": "NordVPN is connecting.",
|
||||||
|
"nordvpn_status_disconnected": "NordVPN is disconnected.",
|
||||||
|
"nordvpn_status_not_logged_in": "NordVPN is installed but not logged in. Run nordvpn login on this host.",
|
||||||
|
"nordvpn_status_service_unavailable": "NordVPN daemon is not available. Make sure nordvpnd is running.",
|
||||||
|
"nordvpn_status_error": "NordVPN returned an error.",
|
||||||
|
"nordvpn_country_placeholder": "Country (optional, e.g. Germany or de)",
|
||||||
|
"nordvpn_city_placeholder": "City (optional, e.g. Berlin)",
|
||||||
"install_starting": "Starting installation...",
|
"install_starting": "Starting installation...",
|
||||||
"server_check_complete": "Check completed",
|
"server_check_complete": "Check completed",
|
||||||
"server_connection_error": "Connection error",
|
"server_connection_error": "Connection error",
|
||||||
@@ -469,10 +494,10 @@
|
|||||||
"new_instance": "new instance",
|
"new_instance": "new instance",
|
||||||
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
"port_next_instance_hint": "Choose a free UDP port for the additional instance.",
|
||||||
"web_servers": "Web servers",
|
"web_servers": "Web servers",
|
||||||
"nginx_desc": "NGINX web server with Let's Encrypt HTTPS certificate and editable index.html.",
|
"nginx_desc": "NGINX web server with Let\u0027s Encrypt HTTPS certificate and editable index.html.",
|
||||||
"nginx_domain": "Domain",
|
"nginx_domain": "Domain",
|
||||||
"nginx_email": "Let's Encrypt email",
|
"nginx_email": "Let\u0027s Encrypt email",
|
||||||
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let's Encrypt validation.",
|
"nginx_port_hint": "HTTPS port exposed on the server. Port 80/TCP must be free and reachable for Let\u0027s Encrypt validation.",
|
||||||
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
|
"nginx_install_hint": "The domain must already point to this server. Port 80/TCP is used for HTTP-01 certificate validation.",
|
||||||
"site": "Site",
|
"site": "Site",
|
||||||
"site_editor": "Site editor",
|
"site_editor": "Site editor",
|
||||||
@@ -518,4 +543,27 @@
|
|||||||
"xui_server_select_label": "3x-ui 服务器",
|
"xui_server_select_label": "3x-ui 服务器",
|
||||||
"xui_server_select_hint": "选择签发订阅 URL 的 3x-ui 面板。",
|
"xui_server_select_hint": "选择签发订阅 URL 的 3x-ui 面板。",
|
||||||
"xui_server_delete_confirm": "从面板删除此 3x-ui 服务器?"
|
"xui_server_delete_confirm": "从面板删除此 3x-ui 服务器?"
|
||||||
|
,
|
||||||
|
"about_title": "About & Updates",
|
||||||
|
"current_version": "Current version",
|
||||||
|
"check_updates": "Check for updates",
|
||||||
|
"checking_updates": "Checking...",
|
||||||
|
"update_available": "New version available",
|
||||||
|
"download_update": "Download update",
|
||||||
|
"up_to_date": "You have the latest version",
|
||||||
|
"apply_update": "Install update",
|
||||||
|
"applying_update": "Updating…",
|
||||||
|
"apply_update_confirm": "Install update from git.evilfox.cc and restart the panel?",
|
||||||
|
"update_restarting": "Updated. Restarting panel…",
|
||||||
|
"update_no_target": "No target version. Check for updates first.",
|
||||||
|
"auto_update_hint": "Auto-update pulls the release tag from git.evilfox.cc (git checkout required).",
|
||||||
|
"auto_update_ready": "Git auto-update is available for this install.",
|
||||||
|
"auto_update_docker": "Docker install: rebuild/pull image, or use a git checkout for one-click update.",
|
||||||
|
"auto_update_manual": "One-click update needs a git clone. You can still download a release.",
|
||||||
|
"auto_update_archive": "One-click update downloads the release ZIP from git.evilfox.cc and restarts the panel.",
|
||||||
|
"upgrade_panel": "Update panel",
|
||||||
|
"upgrade_panel_confirm": "Download and install",
|
||||||
|
"upgrade_panel_confirm_latest": "Check for updates and install the latest release?",
|
||||||
|
"upgrade_panel_working": "Updating panel…",
|
||||||
|
"upgrade_panel_up_to_date": "Already on the latest version"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user