Run BaGet on AWS¶
Warning
This page is a work in progress!
Use Amazon Web Services to scale BaGet. You can store metadata on Amazon RDS and upload packages to Amazon S3.
Configure BaGet¶
You can modify BaGet's configurations by editing the appsettings.json
file. For the full list of configurations, please refer to BaGet's configuration guide.
Amazon S3¶
Update the appsettings.json
file:
{ ... "Storage": { "Type": "AwsS3", "Region": "us-west-1", "Bucket": "foo", "AccessKey": "", "SecretKey": "" }, ... }
Amazon RDS¶
To use PostgreSQL, update the appsettings.json
file:
{ ... "Database": { "Type": "PostgreSql", "ConnectionString": "..." }, ... }
To use MySQL, update the appsettings.json
file:
{ ... "Database": { "Type": "MySql", "ConnectionString": "..." }, ... }
Publish packages¶
Publish your first package with:
dotnet nuget push -s http://localhost:5000/v3/index.json package.1.0.0.nupkg
Publish your first symbol package with:
dotnet nuget push -s http://localhost:5000/v3/index.json symbol.package.1.0.0.snupkg
Warning
You should secure your server by requiring an API Key to publish packages. For more information, please refer to the Require an API Key guide.
Restore packages¶
You can restore packages by using the following package source:
http://localhost:5000/v3/index.json
Some helpful guides:
Symbol server¶
You can load symbols by using the following symbol location:
http://localhost:5000/api/download/symbols
For Visual Studio, please refer to the Configure Debugging guide.