3x-ui/web/service
root 11cdb07e89 feat: add Clash YAML subscription endpoint with template injection
Add /clash/:subid endpoint that returns complete Clash YAML config.
User provides full template (DNS, routing, proxy-groups, rules) in
settings, panel generates proxies from inbound/client data and injects
via proxies: [] placeholder replacement.

- New SubClashService reads template, generates vmess/vless/trojan/ss
  proxy entries with transport (ws/grpc/h2/tcp/httpupgrade), TLS, and
  Reality support
- Settings: subClashEnable, subClashPath, subClashURI, subClashTemplate
- UI: Clash settings tab, QR code on subpage, Desktop dropdown with
  clash-verge:// deep link preferring Clash URL
- Version bump to v1.5.2-beta
2026-04-24 11:25:10 +08:00
..
config.json dokodemo-door, socks renamed to mixed, tunnel 2025-09-09 13:57:40 +02:00
inbound.go fix: MariaDB JSON_EACH compatibility for subscription and traffic queries 2026-04-24 10:16:48 +08:00
inbound_access_test.go Harden admin access for panel APIs 2026-04-06 22:12:38 +08:00
inbound_test.go fix: harden migration and setting writes 2026-04-07 02:12:02 +08:00
node_cache.go feat: add cache-backed worker sync and heartbeat loops 2026-04-10 15:15:42 +08:00
node_guard.go feat: guard shared writes and bump version transactionally 2026-04-10 11:22:49 +08:00
node_guard_test.go feat: guard shared writes and bump version transactionally 2026-04-10 11:22:49 +08:00
node_sync.go feat: add cache-backed worker sync and heartbeat loops 2026-04-10 15:15:42 +08:00
node_sync_test.go feat: improve mariadb flow, db settings init, and traffic flush 2026-04-15 16:58:49 +08:00
outbound.go fix security issue 2026-02-09 23:36:10 +01:00
panel.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
server.go fix: harden migration and setting writes 2026-04-07 02:12:02 +08:00
server_test.go test: add unit tests for critical modules and fix flaky redirect middleware 2026-04-03 08:44:51 +08:00
setting.go feat: add Clash YAML subscription endpoint with template injection 2026-04-24 11:25:10 +08:00
setting_test.go Add panel domain persistence 2026-04-09 21:39:39 +08:00
tgbot.go feat(tgbot): send connection links and qrs on client creation (closes #3320)\n\n- Refactored inline keyboards into getCommonClientButtons to respect DRY\n- Extended SubmitAddClient callback handlers to dispatch individual links and QR codes to the bot chat on success. (#3888) 2026-03-17 22:09:49 +01:00
traffic_flush.go fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta 2026-04-24 02:56:23 +08:00
traffic_flush_test.go fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta 2026-04-24 02:56:23 +08:00
traffic_pending.go feat: improve mariadb flow, db settings init, and traffic flush 2026-04-15 16:58:49 +08:00
turnstile.go fix: harden registration with rate limiting, input validation, and security fixes 2026-04-03 02:02:25 +08:00
user.go fix(user): sync-remove inbound clients when deleting managed user 2026-04-05 03:52:41 +08:00
user_test.go fix(user): sync-remove inbound clients when deleting managed user 2026-04-05 03:52:41 +08:00
warp.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00
xray.go feat: add cache-backed worker sync and heartbeat loops 2026-04-10 15:15:42 +08:00
xray_setting.go feat: migrate settings to JSON file, add Cloudflare SSL in installer 2026-04-02 16:16:52 +08:00