Skip to content

Commit

Permalink
Fixed missing appsettings configuration for production configs.
Browse files Browse the repository at this point in the history
Fixed what looked like a git merge error, duplicate key added on new binner db.
  • Loading branch information
replaysMike committed Mar 18, 2023
1 parent 2926061 commit e07cb92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Binner/Binner.Web/appsettings.Production.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// This is optional, by using a registered key you can obtain a higher request limit.
"ApiKey": "",
// Binner Swarm Api Url
"ApiUrl": "https://swarm.binner.io"
"ApiUrl": "https://swarm.binner.io",
"Timeout": "00:00:05"
},
"Octopart": {
"Enabled": false,
Expand Down Expand Up @@ -47,6 +48,13 @@
// Mouser Api Url
"ApiUrl": "https://api.mouser.com"
},
"Arrow": {
"Enabled": false,
// Arrow API Keys can be obtained at https://developers.arrow.com/api/index.php/site/page?view=requestAPIKey
"ApiKey": "",
"Username": "",
"ApiUrl": "https://api.arrow.com"
},
// AliExpress API is not currently supported
"AliExpress": {
"Enabled": false,
Expand Down
10 changes: 9 additions & 1 deletion Binner/Binner.Web/appsettings.Unix.Production.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// This is optional, by using a registered key you can obtain a higher request limit.
"ApiKey": "",
// Binner Swarm Api Url
"ApiUrl": "https://swarm.binner.io"
"ApiUrl": "https://swarm.binner.io",
"Timeout": "00:00:05"
},
"Octopart": {
"Enabled": false,
Expand Down Expand Up @@ -47,6 +48,13 @@
// Mouser Api Url
"ApiUrl": "https://api.mouser.com"
},
"Arrow": {
"Enabled": false,
// Arrow API Keys can be obtained at https://developers.arrow.com/api/index.php/site/page?view=requestAPIKey
"ApiKey": "",
"Username": "",
"ApiUrl": "https://api.arrow.com"
},
// AliExpress API is not currently supported
"AliExpress": {
"Enabled": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,6 @@ private IBinnerDb NewDatabase()
{ nameof(PcbStoredFileAssignment), 1 },
{ nameof(ProjectPartAssignment), 1 },
{ nameof(ProjectPcbAssignment), 1 },
{ nameof(OAuthRequest), 1 },
});

// seed data
Expand Down

0 comments on commit e07cb92

Please sign in to comment.