Commit Graph

53 Commits

Author SHA1 Message Date
Haitao Pan
497a4ebd71 Add superadmin integration tests and env-based config 2026-01-25 09:04:08 +08:00
Haitao Pan
3aa9bc3fba chore: avoid clobbering schema on dump 2026-01-24 23:02:53 +08:00
Haitao Pan
b80032919a chore: improve scripts for local stunnel and env 2026-01-24 22:57:37 +08:00
Haitao Pan
d703e1f34b chore: fix phony init-db and go proxy 2026-01-24 22:42:40 +08:00
Haitao Pan
7fad438a94 refactor: move make targets to scripts 2026-01-24 22:36:29 +08:00
Haitao Pan
04e03ce488 reset accounts.svc.plus repo 2026-01-23 23:16:37 +08:00
Haitao Pan
07e31ff6bd feat: move account service to repo root
# Conflicts:
#	account/Makefile
#	account/go.mod
#	docs/account-admin-settings.md
#	docs/account-svc-plus.md
2026-01-16 16:15:23 +08:00
82cc98ff07 Update Go base images to Ubuntu 24.04 (#745) 2025-12-04 14:31:24 +08:00
567024afff Add base container images and build helpers (#731) 2025-12-02 22:26:48 +08:00
Haitao Pan
dc95c645eb add manifest generation scripts
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 12:30:48 +08:00
Haitao Pan
d647d02992 feat: merge quick wrapper into main manifest scripts
### Changes:

1. **gen_offline-package_manifest.py**
   - Merged gen_offline-package_manifest_quick.py functionality
   - Added auto-derivation of --root from --output path
   - Auto-discovers subdirectories when --include not specified
   - Outputs to offline-package-manifest.json
   - Removed quick wrapper script (merged into main)

2. **gen_docs_manifest.py**
   - Added auto-discovery of subdirectories
   - Scans all category/version/*.html and *.pdf when --include not specified

### Usage:

For gen_offline-package_manifest.py:
  # Auto-derive root from output
  python3 scripts/gen_offline-package_manifest.py \
    --output /data/update-server/dl-index

  # Or specify root explicitly
  python3 scripts/gen_offline-package_manifest.py \
    --root /data/update-server/offline-package \
    --output /data/update-server/dl-index

For gen_docs_manifest.py:
  # Auto-discover all subdirectories
  python3 scripts/gen_docs_manifest.py \
    --root /data/update-server/docs \
    --output /data/update-server/dl-index

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 18:58:37 +08:00
Haitao Pan
196b11bcc5 feat: enhance scripts with filtering and offline-package support
### Changes:

1. **scripts/gen_docs_manifest.py**
   - Added --include parameter with default "docs"
   - Filters documentation files to only include specified directories
   - Can be provided multiple times for multiple directories
   - Updated docstring to document the new parameter

2. **scripts/gen_mirror_manifest.py**
   - Added generation of offline-package.json file
   - Filters listings to only include offline-package directory entries
   - Writes to the same output directory alongside manifest.json

### Usage:

For gen_docs_manifest.py:
  python3 scripts/gen_docs_manifest.py \
    --root /data/update-server/docs \
    --base-url-prefix https://dl.svc.plus/docs \
    --include docs

For gen_mirror_manifest.py:
  python3 scripts/gen_mirror_manifest.py \
    --root /data/update-server \
    --include offline-package \
    --output dl-index/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 18:33:04 +08:00
Haitao Pan
8d94183c97 feat: enhance scripts with filtering and offline-package support
### Changes:

1. **scripts/gen_docs_manifest.py**
   - Added --include parameter with default "docs"
   - Filters documentation files to only include specified directories
   - Can be provided multiple times for multiple directories
   - Updated docstring to document the new parameter

2. **scripts/gen_mirror_manifest.py**
   - Added generation of offline-package.json file
   - Filters listings to only include offline-package directory entries
   - Writes to the same output directory alongside manifest.json

### Usage:

For gen_docs_manifest.py:
  python3 scripts/gen_docs_manifest.py \
    --root /data/update-server/docs \
    --base-url-prefix https://dl.svc.plus/docs \
    --include docs

For gen_mirror_manifest.py:
  python3 scripts/gen_mirror_manifest.py \
    --root /data/update-server \
    --include offline-package \
    --output dl-index/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:53:36 +08:00
Haitao Pan
c69f4e81b4 feat: update base-url-prefix default in gen_mirror_manifest.py
### Changes:
- Changed --base-url-prefix default from "/" to "https://dl.svc.plus/offline-package"
- Updated docstring usage example to reflect the new default

### Reason:
Sets a more specific default URL prefix for offline package downloads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:44:07 +08:00
Haitao Pan
f000de44ce feat: enhance gen_mirror_manifest.py with configurable options
### Changes:
1. Set ROOT default to `/data/update-server/`
   - Changed --root from required to optional with default value

2. Add --include [dirlist] parameter
   - Default: offline-package
   - Can be provided multiple times
   - Filters which directories to include in manifest
   - Only processes directories matching the include list

3. Add --output parameter
   - Default: dl-index/
   - Specifies where to write manifest.json
   - Creates directory if it doesn't exist

### Usage:
  python3 scripts/gen_mirror_manifest.py \
    --root /data/update-server \
    --base-url-prefix / \
    --include offline-package \
    --output dl-index/ \
    [--exclude docs --exclude xray-core]

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:37:01 +08:00
Haitao Pan
f83fd47c4f feat(auth): implement dual-layer token authentication with config support
- Add auth.enable configuration field (default: true)
- Add TokenService initialization in account service
- Implement token exchange endpoint (/api/auth/token/exchange)
- Implement token refresh endpoint (/api/auth/token/refresh)
- Protect routes with JWT authentication middleware
- Update configuration structures for all services
- Support accessSecret with configurable expiry times
- Update token management script to handle all token types
- Validate auth configuration consistency across services
2025-11-05 20:11:23 +08:00
Haitao Pan
b3bdbc1a80 feat(auth): implement token authentication system across services
- Add token service and MFA service to account service
- Implement auth middleware for request validation
- Add token-based auth to dashboard and RAG server
- Update configuration files for auth settings
2025-11-05 19:28:23 +08:00
Haitao Pan
164eda0fe8 add scripts/install_stalwart_mailserver.sh 2025-11-01 20:27:32 +08:00
Haitao Pan
9b72d94903 --amend 2025-11-01 18:10:46 +08:00
Haitao Pan
c7ec0013db scripts/install_postfix_sendonly.sh: udpate show_dns_record 2025-11-01 18:10:46 +08:00
Haitao Pan
91a566c39b add scripts/install_postfix_sendonly.sh 2025-11-01 18:10:46 +08:00
Haitao Pan
9133ff5d5a scripts/install_opensmtpd_sendonly.sh: update check_send_email() 2025-11-01 13:09:55 +08:00
shenlan
39208538ae Add SMTP app config and send test utilities (#619) 2025-11-01 13:03:00 +08:00
Haitao Pan
f8c2c8c175 scripts: add install_exim_sendonly and install_opensmtpd_sendonly 2025-11-01 12:15:29 +08:00
shenlan
adf41b573d feat: add cross-platform OpenResty installer (#608) 2025-10-31 15:27:49 +08:00
Haitao Pan
9690783eba refactor(postgresql): replace zhparser+scws with pg_jieba; update Makefile and setup scripts 2025-10-30 15:16:32 +08:00
shenlan
70420eb3d3 Add CMS configuration schema, docs, and validation (#551) 2025-10-17 16:41:22 +08:00
shenlan
9c1c792029 Revert "feat: add markdown content pipeline (#547)" (#548)
This reverts commit f8bd1f64b8.
2025-10-17 15:44:26 +08:00
shenlan
f8bd1f64b8 feat: add markdown content pipeline (#547) 2025-10-17 15:27:29 +08:00
shenlan
255dc84492 Move dashboard frontend out of ui namespace (#538) 2025-10-17 12:36:27 +08:00
shenlan
cd56daf1c9 chore: clear stale next cache before builds (#533) 2025-10-16 19:20:30 +08:00
root
1dfb347a30 update rag-server/Makefile 2025-10-15 14:36:37 +08:00
shenlan
5678975cb8 refactor: unify pglogical region schema (#498) 2025-10-13 01:30:28 +08:00
Haitao Pan
0da9e66faa add scripts/clean_git_history.sh 2025-10-10 11:41:54 +08:00
root
2c7609d1d1 chore(sql): add export/import clean schema scripts for pglogical-safe sync 2025-10-08 20:35:01 +08:00
root
ac3fba5f6d chore(sql,pglogical): migrate schema for pglogical compatibility & cleanup
- rename old migration files to standard *.migrate.*.sql
- add 20251008.migrate.generated-columns.sql (fix generated columns)
- update Makefile for MIGRATION_FILES auto-detection
- add sql/readme.md & generate-postgres-tls.sh
- cleanup deprecated git-branch-keeper.sh
- update pglogical.md and setup_ubuntu_2204.sh
2025-10-08 19:45:20 +08:00
Haitao Pan
da01260271 add scripts/git-branch-keeper.sh 2025-10-08 13:48:17 +08:00
shenlan
d60c7d3188 Update PostgreSQL install to 16 (#426) 2025-10-06 17:47:34 +08:00
root
547be6c030 fix(setup): make NodeSource GPG key import more robust by adding proxy + direct fallback 2025-10-06 17:44:38 +08:00
shenlan
589893a46f Move Ubuntu setup script into scripts directory (#425) 2025-10-06 17:34:04 +08:00
shenlan
f44633ba44 feat(docs): add version-aware doc routing (#305) 2025-09-24 21:32:34 +08:00
shenlan
a9148d05b6 feat: redesign docs listing with version selector (#300) 2025-09-23 13:41:43 +08:00
shenlan
ac3a315f3a fix: ensure release notes path matches workflow (#299) 2025-09-23 12:59:52 +08:00
shenlan
c95716c487 feat: fallback to previous tag when missing (#298) 2025-09-23 11:53:25 +08:00
Haitao Pan
664b7e32cc ci(release): wire changelog into daily release
- add scripts/gen-changelog.sh
- generate changelog for daily-<run> in workflow
- publish via softprops body_path (docs/changelog_daily-<run>.md)
2025-09-22 21:40:46 +08:00
shenlan
7bd2ce088e Finalize docs static view component (#253) 2025-09-19 09:34:06 +08:00
Haitao Pan
3349b3ffd3 feat(release): add branch-prune script & update download manifest
- Add scripts/git-prune-branches.sh (one-shot cleanup: keep main/release branches)
- Update public/dl-index/manifest.json
- Prepare for release/v0.2.0 (Public Download SVC)
2025-09-16 16:38:07 +08:00
shenlan
e45b2b01be Refine mirror manifest generation (#237) 2025-09-16 10:46:45 +08:00
shenlan
c03aa62b63 feat: add docs manifest generator and dynamic docs fetch (#236) 2025-09-16 10:00:56 +08:00
shenlan
0e8e850ab4 feat: generate merged dl index (#232) 2025-09-15 22:49:43 +08:00