soroush.asadi
|
6f85cfe4d3
|
feat(infra): add local pull-through mirrors for NuGet, npm, Docker Hub
docker-compose.mirror.yml:
- BaGet (port 5101) → proxies nuget.org
- Verdaccio (port 4873) → proxies npmjs.com
- registry:2 (port 5100) → proxies Docker Hub
nuget.mirror.config: points dotnet restore at http://mirror:5101
mirrors/verdaccio/config.yaml: open reads, upstream npmjs fallback
CI workflow:
- All container jobs: --add-host=mirror:host-gateway
- dotnet restore --configfile nuget.mirror.config
- npm install --registry http://mirror:4873
First run: packages fetched from upstream through the VPS.
All subsequent runs: served from local disk, no CDN needed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-05-28 14:31:12 +03:30 |
|