Skip to content

chore(storage): storage file structure changes#3301

Merged
qdm12 merged 4 commits into
masterfrom
storage-refresh
May 19, 2026
Merged

chore(storage): storage file structure changes#3301
qdm12 merged 4 commits into
masterfrom
storage-refresh

Conversation

@qdm12

@qdm12 qdm12 commented Apr 27, 2026

Copy link
Copy Markdown
Member

Description

  • migrate persisted server data storage from /gluetun/servers.json to /gluetun/servers/
  • add STORAGE_SERVERS_ENABLED=on to enable or disable on-disk server data storage
  • add STORAGE_SERVERS_DIRECTORY_PATH=/gluetun/servers to configure where per-provider server files are stored
  • keep backward compatibility with legacy STORAGE_FILEPATH=/gluetun/servers.json
  • automatically read and migrate legacy /gluetun/servers.json into the new /gluetun/servers/ layout when needed
  • try to remove the legacy servers file after a successful migration to the new storage directory
  • switch persisted server data from one large JSON file to a manifest plus per-provider JSON files
  • add UPDATER_PREFER_DIRECT_DOWNLOAD to allow preferring direct download of provider server data
  • keep deprecated updater flags -enduser and -maintainer as no-op warnings for backward compatibility
  • preserve compatibility checks so persisted server data is discarded when its schema version no longer matches the built-in data
  • allow preferred persisted provider data to override built-in data when versions match
  • servers data now lives at https://github.com/qdm12/gluetun-servers/tree/main/pkg/servers

Later:

  • set UPDATER_PREFER_DIRECT_DOWNLOAD=yes

@qdm12 qdm12 force-pushed the master branch 4 times, most recently from 40f126b to 44d5104 Compare May 3, 2026 04:29
@qdm12 qdm12 force-pushed the storage-refresh branch 3 times, most recently from cabbcf3 to 9f3da0c Compare May 11, 2026 04:16
Comment thread Dockerfile Outdated
Comment thread .golangci.yml Outdated
Comment thread gluetun-servers/go.mod Outdated
@qdm12 qdm12 force-pushed the storage-refresh branch from 9f3da0c to be412fd Compare May 11, 2026 04:19
@qdm12 qdm12 force-pushed the storage-refresh branch 3 times, most recently from 3841e51 to 4d2ec68 Compare May 11, 2026 04:53
@qdm12 qdm12 force-pushed the storage-refresh branch from 4d2ec68 to aa6b2e1 Compare May 12, 2026 04:43
@qdm12

qdm12 commented May 12, 2026

Copy link
Copy Markdown
Member Author

We need to integrate the workflow from #3307 in gluetun-servers

@qdm12 qdm12 force-pushed the storage-refresh branch from aa6b2e1 to f8dd3f4 Compare May 13, 2026 01:00
Comment thread internal/cli/formatservers.go
Comment thread internal/cli/update.go Outdated
Comment thread internal/configuration/settings/storage.go Outdated
Comment thread internal/configuration/settings/storage.go
Comment thread internal/configuration/settings/storage.go Outdated
Comment thread go.mod Outdated
Comment thread go.mod Outdated
Comment thread Dockerfile Outdated
Comment thread Dockerfile
Comment thread internal/updater/updater.go Outdated
Comment thread Dockerfile
@qdm12 qdm12 force-pushed the storage-refresh branch from f8dd3f4 to 3cd3c57 Compare May 19, 2026 01:49
@qdm12 qdm12 force-pushed the storage-refresh branch from 7153282 to eee775d Compare May 19, 2026 02:03
@qdm12 qdm12 marked this pull request as ready for review May 19, 2026 02:27
@qdm12 qdm12 merged commit 8f82376 into master May 19, 2026
7 checks passed
@qdm12 qdm12 deleted the storage-refresh branch May 19, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant