feat(api): Android self-update endpoints proxied from Gitea releases (M5)
GET /api/v1/app/android/latest reads the latest Gitea release with the server token (cached for 10 minutes); the download endpoint caches the APK under /updates, verifies its SHA-256 and serves it with Range. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9fd616da57
commit
6a67c27f50
10 files changed
+940
-173
No files matched your search
@@ -54,6 +54,12 @@ type API struct {
|
||||
|
||||
MeiliURL string `env:"MEILI_URL" envDefault:"http://meilisearch:7700"`
|
||||
MeiliMasterKey string `env:"MEILI_MASTER_KEY"`
|
||||
|
||||
// Самообновление Android: сервер читает релизы Gitea своим токеном и кэширует APK в UpdatesDir.
|
||||
GiteaURL string `env:"GITEA_URL"`
|
||||
GiteaRepo string `env:"GITEA_REPO"`
|
||||
GiteaToken string `env:"GITEA_TOKEN"`
|
||||
UpdatesDir string `env:"UPDATES_DIR" envDefault:"/updates"`
|
||||
}
|
||||
|
||||
// StorageAgent — конфигурация внутреннего сервиса storage-agent.
|
||||
|
||||
Reference in new issue
Block a user