Skip to content

NuGet

NORA acts as a caching proxy for the NuGet v3 API. Package files (.nupkg, .nuspec) are immutably cached; service index and metadata use TTL-based refresh. This is a proxy-only registry — pushing packages is not supported.

Add NORA as a NuGet source:

Terminal window
dotnet nuget add source http://nora.example.com:4000/nuget/v3/index.json -n nora

Or in nuget.config:

<configuration>
<packageSources>
<add key="nora" value="http://nora.example.com:4000/nuget/v3/index.json" />
</packageSources>
</configuration>

Then restore packages as usual:

Terminal window
dotnet restore

config.toml:

[nuget]
enabled = true
proxy = "https://api.nuget.org"
proxy_timeout = 30
metadata_ttl = 300 # seconds

Environment variables:

VariableDescriptionDefault
NORA_NUGET_ENABLEDEnable NuGet proxyfalse
NORA_NUGET_PROXYUpstream NuGet API URLhttps://api.nuget.org
NORA_NUGET_PROXY_AUTHUpstream auth (user:pass)
NORA_NUGET_PROXY_TIMEOUTUpstream timeout in seconds30
NORA_NUGET_METADATA_TTLMetadata cache TTL in seconds300
FeatureStatusNotes
Service index (/v3/index.json)Full@id URLs rewritten to NORA
Registration indexFullTTL-cached
Version list (flat container)FullTTL-cached
.nupkg downloadFullImmutable cache
.nuspec downloadFullImmutable cache
Package pushProxy-only (read)
SearchNot implemented
  • Proxy-only: dotnet nuget push is not supported. NORA caches packages downloaded from the upstream registry.
  • Search endpoint is not implemented.
  • Disabled by default. Set NORA_NUGET_ENABLED=true to activate.