Step-by-step installation of BaGet Extension. Per-platform details are in the linked pages.
| Platform | Page |
|---|---|
| Your computer (Windows, Linux, macOS) | On your computer |
| Docker | Docker |
| Windows, IIS | IIS proxy |
| Azure | Azure |
| AWS | AWS |
| Google Cloud | Google Cloud |
| Alibaba Cloud | Aliyun |
| Item | Needed for |
|---|---|
| .NET 10 ASP.NET Core Runtime (or SDK) | Running on your computer |
| .NET 10 Hosting Bundle | IIS |
| Docker | Docker install |
| A database (SQLite is built in) | SQL Server, PostgreSQL or MySQL are optional |
| Redis | Only high availability |
BaGet workflow artifact of a release run, or publish it:
dotnet publish src/BaGet -c Release -o artifacts -p:GeneratePackageOnBuild=false, then extract.dotnet BaGet.dll.http://localhost:6060/.Kestrel:Endpoints:Http:Url in appsettings.json; --urls and ASPNETCORE_URLS have no effect. Override with the environment variable Kestrel__Endpoints__Http__Url.RunMigrationsAtStartup, on by default).Admin / Admin1234!. Change the password at once (Default administrator).baget.env and a baget-data folder (sample env file: Docker). Minimum:ApiKey=<a secret value>
Kestrel__Endpoints__Http__Url=http://+:80
Storage__Type=FileSystem
Storage__Path=/var/baget/packages
Database__Type=Sqlite
Database__ConnectionString=Data Source=/var/baget/baget.db
Search__Type=Database
SettingsOverridesPath=/var/baget/appsettings.Overrides.json
docker build -t baget . (or pull the one the release workflow publishes).docker run --rm --name nuget-server -p 6060:80 --env-file baget.env -v "$(pwd)/baget-data:/var/baget" baget:latest
Keep SettingsOverridesPath and the log path inside the mounted volume, or a recreated container loses them. The data protection key ring (DataProtection-Keys) is created beside the overrides file, so with the setting above it is in the volume too; without it a recreated container makes stored remote passwords unreadable and signs everyone out (Data protection keys). If the container is reached through a proxy or published port, the client address is the Docker gateway: list the proxy in Proxy:TrustedProxies / Proxy:TrustedNetworks.
dotnet publish generates web.config) and copy it to the site folder.DataProtection-Keys beside the overrides file (set DataProtection:KeyPath for another folder), so a pool without a loaded user profile no longer loses its keys.Set these in appsettings.json, environment variables or (after install) the Settings page. Full list: Configuration.
| Subsystem | Setting | Values |
|---|---|---|
| Database | Database:Type, Database:ConnectionString |
Sqlite (default), SqlServer, PostgreSql, MySql, AzureTable |
| Storage | Storage:Type |
FileSystem (default), AzureBlobStorage, AwsS3, GoogleCloud, AliyunOss, Null |
| Search | Search:Type |
Database (default), AzureSearch, Null |
Cloud setup: Azure, AWS, Google Cloud, Aliyun.
Docker registry repositories need a storage that can stream (not Null): Package formats.
| Step | How |
|---|---|
Change the Admin password |
Sign in, then the profile page |
Set ApiKey or create user keys |
Global ApiKey setting, or /account/apikeys |
| Publish a package | dotnet nuget push -s http://localhost:6060/v3/index.json -k <key> pkg.nupkg |
| Add the feed to clients | Source http://localhost:6060/v3/index.json; symbols http://localhost:6060/api/download/symbols |
| Behind a reverse proxy / HTTPS | Terminate TLS at the proxy; the path base is honoured, forwarded headers only from trusted proxies (loopback by default: list yours in Proxy:TrustedProxies / Proxy:TrustedNetworks, see Configuration) |
| Import existing packages | nuget.org, NuGet.Server, local feeds |
Next: the user manual.
Replace the files (or image) and restart; pending migrations apply at startup. Back up the database and the package store first.