61e44c63ab
Consolidates BaGet + Verdaccio + registry:2 into one Sonatype Nexus OSS instance with a REST API provisioning script. docker-compose.mirror.yml: single nexus service, ports 8081 (UI/NuGet/npm) and 8083 (Docker Hub pull-through proxy) mirrors/nexus/provision.sh: idempotent setup — changes admin password, enables anonymous access, creates nuget-proxy / npm-proxy / docker-hub-proxy nuget.mirror.config: updated source URL to Nexus NuGet proxy endpoint ci-cd.yml: updated npm --registry to Nexus npm proxy endpoint Run once on server: docker compose -f docker-compose.mirror.yml up -d then: ./mirrors/nexus/provision.sh Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
658 B
XML
16 lines
658 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- NuGet config for CI: routes all restores through the local Nexus mirror.
|
|
Usage: dotnet restore --configfile nuget.mirror.config
|
|
Nexus fetches from nuget.org on first request, then caches locally.
|
|
DO NOT use for local development (mirror must be running on the server). -->
|
|
<configuration>
|
|
<packageSources>
|
|
<clear />
|
|
<add key="nexus-nuget" value="http://mirror:8081/repository/nuget-proxy/index.json" protocolVersion="3" />
|
|
</packageSources>
|
|
<config>
|
|
<add key="http_retry_count" value="8" />
|
|
<add key="http_retry_delay_milliseconds" value="1000" />
|
|
</config>
|
|
</configuration>
|