Commit Graph

17 Commits

Author SHA1 Message Date
Андрей Бобырев
1d741d5065 fix(install): print initial admin password
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-26 19:36:56 +03:00
Андрей Бобырев
8e886d6547 feat: token field ON by default in FREE, donate links everywhere
- server.js: ALLOW_COMMUNITY_GITHUB_ACTIVATION defaults to true for
  community edition (disable explicitly with =0/false/no/off)
- app.js: updated hint text when field is disabled by owner
- public/index.html: donate links block on login screen
- public/styles.css: .gate-donate styles
- landing: proj-support-strip with donate links
- README: unified "Поддержка проекта" block + blockquote at top
- .github/FUNDING.yml: Boosty + Ozon + Telegram
- scripts/install.sh: updated comment header
- version bumped to 1.2.28

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 05:52:15 +03:00
Андрей Бобырев
c72a7b9c02 fix(ui): restore index.html; add Ozon to panel promo
Repair broken HTML merge. Extend /api/panel/footer with PANEL_FOOTER_OZON_URL (default Ozon СБП) and labels in strip+footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 04:12:25 +03:00
Андрей Бобырев
bb007ad644 feat(panel): donor strip + Telegram sponsor in footer
Public GET /api/panel/footer with env-backed URLs (defaults: Boosty + t.me sponsor). install.sh forwards PANEL_FOOTER_*. Promo only in admin SPA, not nginx landing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:57:36 +03:00
Андрей Бобырев
ecf754c7da feat(community): manage Telegram MTProto proxy from FREE UI
Docker pull/run/remove/restart via host socket (no SSH), optional
secrets and tg:// links when MTPRO_PUBLIC_HOST or CLIENT_CONFIG_ENDPOINT set.
Expose MTPRO_* and UI_HIDE_MTPROTO through install.sh.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 03:27:50 +03:00
Андрей Бобырев
5c00d08c79 fix(install): mirror PRO tarball auth via GITHUB_TOKEN
Keep FREE installer aligned with PRO: support api.github.com
tarball endpoint with bearer token; tolerate SHA-suffixed dir.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 02:47:26 +03:00
Андрей Бобырев
ab40786dee fix(community): mount real host data dir into helper
Helper used DATA_DIR (in-container path) for bind-mount source.
Daemon created phantom /data on host, log + staging went there
instead of /opt/amnezia-admin-data. Resolve HOST_DATA_DIR via env
or docker inspect; place staging under DATA_DIR so single mount
exposes both log and install.sh to helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 02:30:02 +03:00
Андрей Бобырев
31945d8868 feat(install): INSTALL_FREE_COMMUNITY_ACTIVATION persists GitHub PRO UI opt-in
One env enables community + ALLOW_COMMUNITY_* and writes marker in DATA volume
for idempotent reinstalls without re-export.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:37:32 +03:00
Андрей Бобырев
5e51175d44 fix(install): tolerate docker port failure on stopped panel container
pipefail aborted the script after download when inspect succeeded but port
mapping was unavailable (Stopped/Created).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:31:31 +03:00
Андрей Бобырев
262ae5238e fix(install): AWG multi-count pipeline no longer dies on grep miss
pipefail + grep with zero matches exited the script before docker build.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:30:27 +03:00
Андрей Бобырев
5c3797d3d8 docs(install): explain GitHub stall; curl timeouts and optional progress
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:23:51 +03:00
Андрей Бобырев
08fb053d9f fix(community): install curl in docker helper before private install.sh
Alpine docker:26-cli lacked curl causing PRO install to fail/tar garbage;
also sweep containers matching name substring amnezia-admin-pro (compose IDs).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:20:05 +03:00
Андрей Бобырев
6c213ef49e feat(community): live install log panel in FREE UI + install-log API
Poll community-install-last.log after «Установить PRO» with GET
/api/community/install-log; preserve log DOM across banner redraws.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:17:47 +03:00
Андрей Бобырев
902bd99395 fix(community): PRO install from UI uses docker-cli helper to free :8080
Run install.sh in a disposable docker:26-cli container after docker rm
FREE/landing/stale PRO; keeps working after API response. Legacy in-panel
bash retained when COMMUNITY_DISABLE_DOCKER_CLI_HELPER=1. Persist related
env vars in install.sh from previous container.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:14:18 +03:00
Андрей Бобырев
6faf696650 fix(install): persist community/UI env from prev container; auto LANDING_PORT
- Restore ALLOW_COMMUNITY_GITHUB_ACTIVATION and related vars from old amnezia-admin
- Pick free LANDING_PORT when host :80 is busy
- README: FAQ token field, 8080 vs PRO, landing port

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 01:07:26 +03:00
Андрей Бобырев
70e2ed4385 fix(install): pass community PRO-activation env into container
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-15 00:51:50 +03:00
Андрей Бобырев
7f5fb921e6 feat: open community panel (read-only clients only)
Ship full install stack with .amnezia-panel-edition=community; docs and
footer point to Boosty/PRO. Managing peers, export, cascade and WARP
require private PRO build.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-14 21:53:15 +03:00