Watch
1
0
Fork
You've already forked pkg-proxy
1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-08-23 12:24:57 -04:00
pkg-proxy/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vincent Palatin 800ffc6b38
Make Debian upstream repository configurable. (#229)
* Refactor LoadFromEnv to use helpers

Avoid triggering the linter about the cyclomatic complexity of the LoadFromEnv
function in later changes by refactoring it to use setEnvString/setEnvBool
helpers.

No functional change, just collapse ~29 repetitive if-blocks into single-line
calls to two small helpers.

* Make Debian upstream repository configurable

Support overriding the Debian handler's upstream (e.g. Ubuntu archives)
via PROXY_UPSTREAM_DEBIAN or upstream.debian in the config file.

Tested with PROXY_UPSTREAM_DEBIAN=http://archive.ubuntu.com/ubuntu
to get Ubuntu Resolute packages.
2026-08-05 17:48:00 +01:00
..
config Make Debian upstream repository configurable. (#229) 2026-08-05 17:48:00 +01:00
database Add .golangci.yml and clear gocognit/goconst findings (#113) 2026-05-05 10:25:17 +01:00
enrichment Use shared github.com/git-pkgs/enrichment module 2026-02-06 10:37:00 +00:00
handler Make Debian upstream repository configurable. (#229) 2026-08-05 17:48:00 +01:00
metrics Add storage backend probe to /health (closes #73) (#119) 2026-05-22 12:14:01 +01:00
mirror Apply 'go fmt' as suggested in CONTRIBUTING.md. 2026-04-18 07:43:22 -04:00
server Make Debian upstream repository configurable. (#229) 2026-08-05 17:48:00 +01:00
storage Name empty path validation subtest 2026-07-09 17:41:05 +01:00