99 Commits

Author SHA256 Message Date
9bed3db0a3 - Update to version 1.104:
* Prepare folder mirrorlist agg during mirror scan (#629)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=138
2025-11-06 14:30:15 +00:00
0d9ee43e80 - Update to version 1.103:
* Detect vpn from http header variable (#628)
  * Add parameter MIRRORCACHE_VPN_PREFIX_NEG to escape some vpn ranges (#627)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=137
2025-11-03 05:52:28 +00:00
1cf54bc8da - Update to version 1.102:
* Add Exec service to schedule and execute bash cmds (#623)
  * ui: add leap 16 to reports (#624)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=136
2025-10-16 13:41:36 +00:00
5d1d8f32da - Update to version 1.101:
* Load mojo plugin from env variables

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=135
2025-10-06 09:55:58 +00:00
611e25e0a0 - Update to version 1.100:
* Allow server admins manage server notes (#619)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=133
2025-08-29 11:16:07 +00:00
1ba026f164 - Update to version 1.099:
* Fix task mirror_probe_project always failing for https-only servers (#617)
  * Tolarate mirrors with disabled directory listing in mirror_probe_projects (#617)
  * Partition task mirror_probe_projects for each region (#617)
  * Fix primary key on server_projects table for mariadb (#617)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=132
2025-08-28 06:32:40 +00:00
d9443a43bc - Update to version 1.098:
* Respect http(s) protocol in folder mirrorlist (#610)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=131
2025-08-11 09:46:12 +00:00
d250f2fc7c - Update to version 1.097:
* Reduce limit of mirrors in folder mirrorlist (#601)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=130
2025-07-16 09:10:21 +00:00
b9bff16606 - Update to version 1.096:
* Reduce stale-while-revalidate time (#596)
  * Add more exceptions to folder mirrorlist (#597)
  * Fix double repodata path in mirrorlist folder (#594)
  * Improve performance of SQL query for folder mirrorlist (#594)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=129
2025-06-05 05:55:01 +00:00
01f131f482 - Update to version 1.095:
* Show only mirrors having recent files in folder mirrorlist (#593)
  * fix sql not showing mirrorlist for some folders (#591)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=128
2025-06-03 08:28:57 +00:00
6b2ff18b3f - Update to version 1.094:
* Cleanup agg_download_pkg (#589)
  * Add BACKSTAGE_QUEUE parameter to backstage startup scripts (#583)
  * Shard background jobs (#582)
  * Fix workflow test-salt-package-from-obs (#578)
  * Show package download statistics for month and week (#577)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=127
2025-05-16 09:28:03 +00:00
e8609c5148 - Update to version 1.093:
* Fix join condition in stat_agg_pkg task

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=126
2025-03-26 12:17:39 +00:00
161a437890 - Update to version 1.092:
* Rework aggregation of package download stats (#572)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=125
2025-03-25 12:13:07 +00:00
021b06fcd1 - Update to version 1.091:
* Count download for packages (#571)
  * ui: change default sort order for mtime column (#570)
  * Update footer.html.ep - copyright year (#564)
  * Fix join condition in pkg stat aggregation (#555)
  * Less aggressive schedule for package day stat calculation (#555)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=124
2025-03-21 15:04:06 +00:00
a1b67b123f - Update to version 1.090:
* Add job to aggregate package download count (#552)
  * Handle APKINDEX.tar.gz (alpine repository index) as well (#554)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=123
2025-01-09 11:14:56 +00:00
ebf833db05 - Update to version 1.089:
* Fix presense in header x-media-version when empty (#548)
  * Add /app/efficiency reporting cache hit rate (#547)
  * Do not verify redirects of unversioned files on HEAD requests (#546)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=122
2024-12-13 11:33:23 +00:00
bac9020ea5 - Update to version 1.088:
* Add parameter strict to /app/package
  * Use urandom for random_string
  * backstage: properly close DB connections in minion jobs
  * systemd: for background services LOG_LEVEL=error and MemoryMax
  * ci: Bump mariadb experimental version to 11.7

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=120
2024-11-28 14:30:46 +00:00
3b09ac5dd0 - Update to version 1.087:
* Fix enormous query retrieving existing packages (#536)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=119
2024-11-23 12:11:43 +00:00
f037a7c1ac - Update to version 1.086:
* Extra filters to /app/package (#535)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=118
2024-11-22 09:47:12 +00:00
5722929cbc - Update to version 1.085:
* Add /app/package (#534)
  * Make sure services are started in setup.md

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=117
2024-11-21 10:38:58 +00:00
c961be4743 - Update to version 1.084:
* systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
  * Smart handle of local symlinks

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=116
2024-11-06 08:46:20 +00:00
c8e1f78459 - Update to version 1.083:
* Escape regex in browse.html.ep (#527)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=115
2024-10-25 15:03:28 +00:00
c73fb668e6 - Update to version 1.082:
* Redirect all local symlinks
  * Detect only symlinks with specific name during remote scan
  * fix encoding in the mirrors report when using MariaDB
  * systemd: configure MOJO_TMP_DIR=/tmp/mirrorcache
  * Set permission 750 to /etc/mirrorcache

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=114
2024-10-24 10:27:14 +00:00
cee082f24a - Update to version 1.081:
* Add /rest/project_disk_usage route (#510)
  * fix redirect of unversioned files when accept has zsync (#509)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=112
2024-08-09 09:50:06 +00:00
f958f0fdc0 - Update to version 1.080:
* Add /rest/project_last_modified route (#506)
  * Display project size in human friendly format (#503)
  * Add flag mysql_enable_utf8mb4 when connectin to MariaDB (#505)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=111
2024-08-01 09:01:19 +00:00
d98d114e38 - Update to version 1.079:
* Show size of projects (#502)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=110
2024-07-25 07:42:43 +00:00
f324a7e977 - Update to version 1.078:
* Respect If-Modified-Since header (#501)
  * Add content-disposition header in torrent responses (#497)
  * Reuse file extention instead of url parameter in redirects (#497)
  * Allow caches to serve files while re-checking (#492)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=109
2024-07-18 08:27:19 +00:00
6bebbe1eba - Update to version 1.077:
* UI fix db sync timezone (#487)
  * tmpfiles: Let working and run directories be always created (#488)
  * Switch CI to 15.6 (#489)
  * Fix doubleslash in mirrors report (#490)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=108
2024-06-20 05:48:45 +00:00
c0856d0dc9 - Update to version 1.076:
* Fix duplicate values in x-media-version response header
  * ci: Temporarily disable systemd tests

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=106
2024-05-21 14:21:11 +00:00
65dbdcc982 - Update to version 1.075:
* Add url parameters for report/download
  * ui: User friendly status of DB sync for a directory
  * Add Etag and X-MEDIA-VERSION for folders
  * Add response header X-MEDIA-VERSION
  * Add Etag when rendering files
  * Prioritize scanning of projects
  * Make VPN_PREFIX a list
  * Add WorkingDir to the subtree.service
  * Add config for mojo tmpfiles
  * fix redirect for mirrorlist parameter for zsync files

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=105
2024-05-21 11:04:30 +00:00
30251ca3a9 - Update to version 1.074:
* Rework mirrors report generation
  * fix files mtime descrepancy when syncing over http
  * Fix metalink for small files
  * fix serving linked folders when dest changes

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=104
2024-04-04 10:35:40 +00:00
a297e1a566 - Update to version 1.073:
* Track mirror propagation using time of job
  * Add project propagation details /app/server_rollout/:version
  * Do not show projects with negative priority
  * Show only relevant mirrors in /report/mirrors/:proj
  * fix .mirrorlist doesnt always work for repomd.xml
  * ui: add prio column to /app/project

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=103
2024-03-07 15:23:27 +00:00
8bd96d566a - Update to version 1.072:
* ui: add /app/project/:id with propagation
  * Rework rollout to include subfolders in repo projects

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=102
2024-02-29 11:36:54 +00:00
e876245745 - Update to version 1.071:
* Add rollout tracking for iso and repo projects (#451)
  * Allow redirects in MirrorFileCheck task (#450)
  * Add timeout for hashes import job (#449)
  * Adjust regex for folder mirrorlist (#449)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=101
2024-02-08 10:09:58 +00:00
523e90e62b - Update to version 1.070:
* ui: Show health on mirror card (#439)
  * fix capabilities sometimes not shown in /report/mirrors (#438)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=100
2023-12-07 09:02:42 +00:00
7c0d1d2165 - Update to version 1.069:
* t: Adjust location of environ/mc/db links (#437)
  * t: Make 09-stability-02 more robust (#437)
  * t: Bump MariaDB experimental version (#437)
  * t: Switch environ to package from github repo (#437)
  * Add generation time to /report/mirrors (#436)
  * Remove postgres replication support (#435)
  * fix: mirrors with capability declaraion might disappear in /rest/server (#434)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=99
2023-11-30 09:49:10 +00:00
8982bb9931 - Update to version 1.068:
* Add diagnostic job for checking presence of a file on mirrors
  * Adjust switch Digest::Zsync to separate package
  * Update regexps to handle zchunk, zstd and sha512
  * Improve link detection in the same folder
  * Add a Vary Fastly-SSL

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=98
2023-11-16 16:57:49 +00:00
327d9d26ca - Update to version 1.067:
* fix handling combinations of metalink / zsync / mirrorlist / symlinks (#421)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=97
2023-10-26 07:58:17 +00:00
303ab0898f - Update to version 1.066:
* Centalized mirror management (#417)
  * Fix surepfluous .zsync in symlink redirect (#419)
  * t: Move container tests to from leap 15.4 to 15.5

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=96
2023-10-19 11:39:18 +00:00
40b1ed5e87 - Update to version 1.065:
* ui: Use https when applicable on mirrors report (#411)
  * ui: Show country flag in mirror report (#411)
  * ui: Tweak mirrors report (#411)
  * ui: Remove tidy warnings from openSUSE branding (#411)
  * ui: Add mirror details page (#411)
  * Remove dark theme css code for Mirrors page (#408)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=95
2023-09-28 10:15:48 +00:00
aefe962653 - Update to version 1.064:
* Remove must-revalidate from cache-control (#407)
  * Add handling x-metalink-limit request header (#407)
  * Add handling x-country-code request header (#407)
  * Fix escaping in regexps (#406)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=94
2023-09-14 06:52:03 +00:00
5188a2c8e8 - Update to version 1.063:
* Add cache-control options (#404)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=93
2023-08-31 07:38:01 +00:00
936838d895 - Update to version 1.062:
* Add GEOIP config (#399)
  * Add url parameter LIMIT fir number of mirrors in metalink (#399)
  * Improve download report for multigroups (#398)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=92
2023-08-03 08:45:21 +00:00
8b31d64564 - Update to version 1.061:
* Add support of some parameters in ini file (#397)
  * Fix html mirror report (#394)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=91
2023-07-20 07:11:30 +00:00
66d5e48f65 - Update to version 1.060:
* Tolerate DB downtime (#392)
  * Cache mirror report in case if DB or subsidiary is down (#393)
  * Fix value of METALINK_GREEDY in meta4 (#389)
  * Honor links for MIRRORCACHE_REDIRECT (#390)
  * Rework and fix /rest/stat (#387)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=90
2023-06-15 06:48:41 +00:00
ba690a6c49 - Update to version 1.059:
* Consider links when redirecting to the root (#374)
  * Add backend for mirror-counries relation (#375)
  * Use optinally default conf file in subtree service (#379)
  * rework salt test to use formula (#378)
  * ci: Switch systemd tests to github actions (#379)
  * Switch to podman from docker in systemd tests (#379)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=89
2023-05-08 13:53:12 +00:00
19bf18d0a2 - Update to version 1.058:
* Add Vary header into http responses (#373)
  * Add experimental feature mirrorlist for folder (#372)
  * Fix redirect on remote MirrorCache (#372)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=88
2023-04-13 10:37:58 +00:00
f025cbc2a4 - Update to version 1.057:
* sql: Optimize lookup for server_project (#369)
  * Avoid deadlock in minion pubsub code (#371)
  * Avoid deadlock in cleanup job deleting from folder_diff (#371)
  * ci: Switch ci container from 15.3 to 15.4 (#370)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=87
2023-04-06 06:32:41 +00:00
7b5984752d - Update to version 1.056:
* Improve symlink handling when remote root references another remote root (#353)
  * ui: add content-disposition inline to render_file (#355)
  * Don't send users to Bugzilla by @AdamMajer (#357)
  * Add leap 15.5 to project list (#358)
  * Add GNOME iso to Current pattern (#356)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=86
2023-02-09 09:46:38 +00:00
b24cef25a2 - Update to version 1.055:
* Handle redirects with RootRemote (#351)
  * Add sha512 to hash (#352)
  * Do not urlencode plus character (#352)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=85
2023-02-02 12:05:21 +00:00