[PR #4121] [CLOSED] feat: add geofile scheduled update #5605

Closed
opened 2026-10-31 20:48:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4121
Author: @Sora39831
Created: 4/28/2026
Status: ❌ Closed

Base: main ← Head: fix


📝 Commits (10+)

  • af7ed2a chore: update GitHub links to fork repository Sora39831/3x-ui
  • f5c9314 ci: remove docker workflow, simplify release triggers
  • 286056a feat: improve uninstall and reset_config behavior
  • 30b27bf feat: migrate settings to JSON file, add Cloudflare SSL in installer
  • 2d491e2 ci: disable windows build job to fix invalid workflow file
  • e40f73c ci: remove release trigger, auto-create release on tag push
  • 82d93da fix: remove premature x-ui start in ssl_cert_issue to ensure custom port takes effect
  • 5103d57 feat: add registration tab with Cloudflare Turnstile support
  • 3d1d422 feat(install): add pre-release version selection prompt
  • f6d993c feat(update): add pre-release version selection prompt

📊 Changes

221 files changed (+62339 additions, -11428 deletions)

View changed files

➖ .github/copilot-instructions.md (+0 -155)
➖ .github/workflows/docker.yml (+0 -62)
📝 .github/workflows/release.yml (+238 -165)
📝 .gitignore (+23 -1)
➕ .opencode/skills/frontend-design/LICENSE.txt (+177 -0)
➕ .opencode/skills/frontend-design/SKILL.md (+42 -0)
➖ .vscode/launch.json (+0 -35)
➖ .vscode/tasks.json (+0 -75)
📝 DockerInit.sh (+0 -4)
📝 Dockerfile (+1 -0)
📝 README.ar_EG.md (+9 -12)
📝 README.es_ES.md (+9 -12)
📝 README.fa_IR.md (+9 -12)
📝 README.md (+28 -12)
📝 README.ru_RU.md (+9 -12)
📝 README.zh_CN.md (+17 -12)
➕ cmd/genassets/main.go (+37 -0)
📝 config/config.go (+344 -0)
➕ config/config_test.go (+367 -0)
📝 config/version (+1 -1)

...and 80 more files

📄 Description

Summary

  • Add configurable scheduled geofile updates via x-ui.json settings
  • New GeofileUpdateJob following BackupJob pattern (hourly/every12h/daily/weekly)
  • Panel UI: toggle, frequency dropdown, hour selector in Geofiles panel
  • x-ui geofile-cron subcommand to configure schedule from CLI
  • Only master node executes updates; workers sync via shared DB version bump

Test Plan

  • Build compiles (go build ./...)
  • Existing tests pass (go test ./web/...)
  • Panel UI: Geofiles modal shows schedule controls
  • Panel UI: Changing frequency/hour saves to x-ui.json
  • x-ui geofile-cron --status reads config
  • x-ui geofile-cron --enable --frequency daily --hour 4 writes config
  • x-ui geofile-cron --disable disables scheduled update
  • bash -n x-ui.sh passes syntax check

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4121 **Author:** [@Sora39831](https://github.com/Sora39831) **Created:** 4/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix` --- ### 📝 Commits (10+) - [`af7ed2a`](https://github.com/MHSanaei/3x-ui/commit/af7ed2a38f2cf8aa8daea26ce86deeb1dc1b7ed1) chore: update GitHub links to fork repository Sora39831/3x-ui - [`f5c9314`](https://github.com/MHSanaei/3x-ui/commit/f5c931426d322888b4fd54ab8d7d60a16d7c1675) ci: remove docker workflow, simplify release triggers - [`286056a`](https://github.com/MHSanaei/3x-ui/commit/286056ab030737956e984b07ef530593aa1940a2) feat: improve uninstall and reset_config behavior - [`30b27bf`](https://github.com/MHSanaei/3x-ui/commit/30b27bf09121a168fb6a414e1123363a00f1832b) feat: migrate settings to JSON file, add Cloudflare SSL in installer - [`2d491e2`](https://github.com/MHSanaei/3x-ui/commit/2d491e272c8940219fb1cb9f890297fc5c48a24a) ci: disable windows build job to fix invalid workflow file - [`e40f73c`](https://github.com/MHSanaei/3x-ui/commit/e40f73cc1c745a6ecff96ca832fb6b828072dd8c) ci: remove release trigger, auto-create release on tag push - [`82d93da`](https://github.com/MHSanaei/3x-ui/commit/82d93da36ed22b22d91eb2a8e9c90527029d6a64) fix: remove premature x-ui start in ssl_cert_issue to ensure custom port takes effect - [`5103d57`](https://github.com/MHSanaei/3x-ui/commit/5103d57879f9b16ad9b5418066b530b1c33e7276) feat: add registration tab with Cloudflare Turnstile support - [`3d1d422`](https://github.com/MHSanaei/3x-ui/commit/3d1d422ae1969b0a4cf8042ca2efaa7d0fc54f07) feat(install): add pre-release version selection prompt - [`f6d993c`](https://github.com/MHSanaei/3x-ui/commit/f6d993c29dedefffdb0aed8a0b822acc7d9955cc) feat(update): add pre-release version selection prompt ### 📊 Changes **221 files changed** (+62339 additions, -11428 deletions) <details> <summary>View changed files</summary> ➖ `.github/copilot-instructions.md` (+0 -155) ➖ `.github/workflows/docker.yml` (+0 -62) 📝 `.github/workflows/release.yml` (+238 -165) 📝 `.gitignore` (+23 -1) ➕ `.opencode/skills/frontend-design/LICENSE.txt` (+177 -0) ➕ `.opencode/skills/frontend-design/SKILL.md` (+42 -0) ➖ `.vscode/launch.json` (+0 -35) ➖ `.vscode/tasks.json` (+0 -75) 📝 `DockerInit.sh` (+0 -4) 📝 `Dockerfile` (+1 -0) 📝 `README.ar_EG.md` (+9 -12) 📝 `README.es_ES.md` (+9 -12) 📝 `README.fa_IR.md` (+9 -12) 📝 `README.md` (+28 -12) 📝 `README.ru_RU.md` (+9 -12) 📝 `README.zh_CN.md` (+17 -12) ➕ `cmd/genassets/main.go` (+37 -0) 📝 `config/config.go` (+344 -0) ➕ `config/config_test.go` (+367 -0) 📝 `config/version` (+1 -1) _...and 80 more files_ </details> ### 📄 Description ## Summary - Add configurable scheduled geofile updates via `x-ui.json` settings - New `GeofileUpdateJob` following BackupJob pattern (hourly/every12h/daily/weekly) - Panel UI: toggle, frequency dropdown, hour selector in Geofiles panel - `x-ui geofile-cron` subcommand to configure schedule from CLI - Only master node executes updates; workers sync via shared DB version bump ## Test Plan - [ ] Build compiles (`go build ./...`) - [ ] Existing tests pass (`go test ./web/...`) - [ ] Panel UI: Geofiles modal shows schedule controls - [ ] Panel UI: Changing frequency/hour saves to `x-ui.json` - [ ] `x-ui geofile-cron --status` reads config - [ ] `x-ui geofile-cron --enable --frequency daily --hour 4` writes config - [ ] `x-ui geofile-cron --disable` disables scheduled update - [ ] `bash -n x-ui.sh` passes syntax check --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:07 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5605
No description provided.